Fixed Null Pointer.

This commit is contained in:
sigonasr2 2017-11-20 21:02:32 -06:00
parent 87ab40209b
commit 09f715c30b
2 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -295,10 +295,12 @@ public class RabiRaceModule extends Module{
} }
firstUpdate=false; firstUpdate=false;
} }
for (Profile p : mySession.getPlayers()) { if (mySession!=null) {
if (!p.username.equalsIgnoreCase(myProfile.username)) { for (Profile p : mySession.getPlayers()) {
if (!p.isPaused) { if (!p.username.equalsIgnoreCase(myProfile.username)) {
p.playtime += myProfile.playtime-myProfile.getArchive().playtime; if (!p.isPaused) {
p.playtime += myProfile.playtime-myProfile.getArchive().playtime;
}
} }
} }
} }