Skip to content

Commit

Permalink
Fixed NPE when no channels were tied to a geofence that pokemon fell …
Browse files Browse the repository at this point in the history
…within
  • Loading branch information
CBRSightings committed Oct 25, 2017
1 parent 5a1ede8 commit 09db09c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/notifier/PokeNotificationSender.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public void run() {
}
} else {
for (GeofenceIdentifier geofenceIdentifier : pokeSpawn.getGeofenceIds()) {
for (PokeChannel channel : config.getPokeChannels(geofenceIdentifier)) {
ArrayList<PokeChannel> channels = config.getPokeChannels(geofenceIdentifier);
if(channels == null) continue;
for (PokeChannel channel : channels) {
postToChannel(channel, pokeSpawn);
}
}
Expand Down

0 comments on commit 09db09c

Please sign in to comment.