Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Commit 8b5e13c

Browse files
committed
3.0.2 - Fix null events
1 parent ecbfcb6 commit 8b5e13c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.2
2+
### Fixed
3+
- Event Manager accepting ``null`` events
4+
15
## 3.0.1
26
### Added
37
- Added ability to toggle the event bus post method

src/main/java/clientapi/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private Version() {}
4040
/**
4141
* Incremented every release, reset when the minor version is modified
4242
*/
43-
public static final int PATCH = 1;
43+
public static final int PATCH = 2;
4444

4545
/**
4646
* @return The version formatted as {@code MAJOR.MINOR.PATCH}

src/main/java/clientapi/event/ClientAPIEventManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public ClientAPIEventManager() {
4040

4141
@Override
4242
public final void post(Object event) {
43-
if (enabled) {
43+
if (enabled && event != null) {
4444
super.post(event);
4545
}
4646
}

0 commit comments

Comments
 (0)