Fixed arrayOutOfBounds error with bounties

This commit is contained in:
Treeku
2014-06-03 20:08:39 +01:00
parent 7674198e59
commit d1bae969c7
+1 -1
View File
@@ -1345,7 +1345,7 @@ public class PlayerService implements INetworkDispatch {
@Override
public void process(SWGObject owner, int eventType, Vector<String> returnList) {
if (eventType == 0 && returnList.get(0) != null) {
if (eventType == 0 && returnList.size() > 0 && returnList.get(0) != null) {
int bounty = Integer.parseInt(returnList.get(0));
int totalFunds = victim.getBankCredits() + victim.getCashCredits();