l2media Posted April 15, 2016 Posted April 15, 2016 I start with admin siege bi and I have this error in the console and has
0 Tryskell Posted April 15, 2016 Posted April 15, 2016 getOnlineMembers probably return null somewhere, when you got no null control on the method you screenshoted. If it's a list or a collection which is generated by getOnlineMembers, use Collections.emptyList() instead of null.
0 l2media Posted April 15, 2016 Author Posted April 15, 2016 getOnlineMembers probably return null somewhere, when you got no null control on the method you screenshoted. If it's a list or a collection which is generated by getOnlineMembers, use Collections.emptyList() instead of null. change it again not my barrel sent in error console
0 tazerman2 Posted April 15, 2016 Posted April 15, 2016 public void updatePlayerSiegeStateFlags(boolean clear) { L2Clan clan; for(L2SiegeClan siegeClan : getAttackerClans()) { clan = ClanTable.getInstance().getClan(siegeClan.getClanId()); for(L2PcInstance member : clan.getOnlineMembers("")) { member.setSiegeState((byte) (clear ? 0 : 1)); } } for(L2SiegeClan siegeclan : getDefenderClans()) { clan = ClanTable.getInstance().getClan(siegeclan.getClanId()); for(L2PcInstance member : clan.getOnlineMembers("")) { member.setSiegeState((byte) (clear ? 0 : 2)); } } }
0 l2media Posted April 15, 2016 Author Posted April 15, 2016 public void updatePlayerSiegeStateFlags(boolean clear) { L2Clan clan; for(L2SiegeClan siegeClan : getAttackerClans()) { clan = ClanTable.getInstance().getClan(siegeClan.getClanId()); for(L2PcInstance member : clan.getOnlineMembers("")) { member.setSiegeState((byte) (clear ? 0 : 1)); } } for(L2SiegeClan siegeclan : getDefenderClans()) { clan = ClanTable.getInstance().getClan(siegeclan.getClanId()); for(L2PcInstance member : clan.getOnlineMembers("")) { member.setSiegeState((byte) (clear ? 0 : 2)); } } } Again my two barrel
0 Tryskell Posted April 15, 2016 Posted April 15, 2016 Read my answer until you understand it, nothing I can do more except doing it for you (which I won't).
0 l2media Posted April 16, 2016 Author Posted April 16, 2016 anyone any idea what to do to fix it ????
Question
l2media
I start with admin siege bi and I have this error in the console and has
12 answers to this question
Recommended Posts