NPE check for NetClient _pendingPacketData.
This commit is contained in:
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
@@ -72,8 +72,12 @@ public class NetClient
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pendingPacketData != null)
|
||||||
|
{
|
||||||
_pendingPacketData.clear();
|
_pendingPacketData.clear();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add packet data to the queue.
|
* Add packet data to the queue.
|
||||||
|
Reference in New Issue
Block a user