EventDispatcher should throw NPE before try block.
This commit is contained in:
		| @@ -142,13 +142,13 @@ public class EventDispatcher | ||||
| 	 */ | ||||
| 	private <T extends AbstractEventReturn> T notifyEventToMultipleContainers(IBaseEvent event, ListenersContainer[] containers, Class<T> callbackClass) | ||||
| 	{ | ||||
| 		if (event == null) | ||||
| 		{ | ||||
| 			throw new NullPointerException("Event cannot be null!"); | ||||
| 		} | ||||
| 		 | ||||
| 		try | ||||
| 		{ | ||||
| 			if (event == null) | ||||
| 			{ | ||||
| 				throw new NullPointerException("Event cannot be null!"); | ||||
| 			} | ||||
| 			 | ||||
| 			T callback = null; | ||||
| 			if (containers != null) | ||||
| 			{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment