mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
fixed tons of null pointers after loading objects from db
This commit is contained in:
@@ -94,6 +94,10 @@ public class BazaarService implements INetworkDispatch {
|
||||
while(cursor.hasNext()) {
|
||||
addAuctionItem((AuctionItem) cursor.next());
|
||||
}
|
||||
auctionItems.stream().map(AuctionItem::getItem).forEach(obj -> {
|
||||
obj.initAfterDBLoad();
|
||||
obj.viewChildren(obj, true, true, obj2 -> obj2.initAfterDBLoad());
|
||||
});
|
||||
cursor.close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user