Player null collection checks.
This commit is contained in:
+5
-1
@@ -14969,7 +14969,11 @@ public class Player extends Playable
|
|||||||
{
|
{
|
||||||
while (rset.next())
|
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")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15053,7 +15053,11 @@ public class Player extends Playable
|
|||||||
{
|
{
|
||||||
while (rset.next())
|
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")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15096,7 +15096,11 @@ public class Player extends Playable
|
|||||||
{
|
{
|
||||||
while (rset.next())
|
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")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -15344,7 +15344,11 @@ public class Player extends Playable
|
|||||||
{
|
{
|
||||||
while (rset.next())
|
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")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -15638,7 +15638,11 @@ public class Player extends Playable
|
|||||||
{
|
{
|
||||||
while (rset.next())
|
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")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -15638,7 +15638,11 @@ public class Player extends Playable
|
|||||||
{
|
{
|
||||||
while (rset.next())
|
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")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user