Player null collection checks.

This commit is contained in:
MobiusDevelopment
2022-10-31 22:18:45 +00:00
parent c619e4e4b4
commit 259bde1f0f
6 changed files with 30 additions and 6 deletions

View File

@@ -15053,7 +15053,11 @@ public class Player extends Playable
{
while (rset.next())
{
_collections.add(new PlayerCollectionData(rset.getInt("collectionId"), rset.getInt("itemId"), rset.getInt("index")));
final int collectionId = rset.getInt("collectionId");
if (CollectionData.getInstance().getCollection(collectionId) != null)
{
_collections.add(new PlayerCollectionData(collectionId, rset.getInt("itemId"), rset.getInt("index")));
}
}
}
}