pmikee / j-gw2-api

Automatically exported from code.google.com/p/j-gw2-api
0 stars 0 forks source link

jGW2API.util.HighLevelAPI.getEvent() nullable parameter #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call getEvent with parameters : getEvent(2103, null, null);

What is the expected output? What do you see instead?
Expected : get the event of world 2103.

Null pointer exception.

Please provide any additional information below.

The second null make a NPE because it's expect a correct Integer.

Contrary to jGW2API.getEvents, we can't have all the events from one world, we 
must specify a map.

Original issue reported on code.google.com by Giry.Geo...@gmail.com on 3 Jun 2013 at 2:45

GoogleCodeExporter commented 9 years ago
Found the error. Kinda stupid error from my side (calling methods on 
potentional null parameters. Nice one Keven... xD).

Original comment by Varonth87 on 3 Jun 2013 at 7:12