add null handling to event listener
This commit is contained in:
parent
37f08b5178
commit
c572fa5992
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ public class EventListener {
|
|||
}
|
||||
}
|
||||
try {
|
||||
res.call((Response) method.invoke(catcher, args));
|
||||
Response resp = (Response) method.invoke(catcher, args);
|
||||
if(resp != null)
|
||||
res.call(resp);
|
||||
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue