Skip to content

Commit d7b22ca

Browse files
authored
Merge pull request #25 from jordanfly/patch-2
this.blockingNeutral can be null
2 parents 5669f9b + e4ff28d commit d7b22ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwem/ChokePointImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void onBlockingNeutralDestroyed(final Neutral pBlocking) {
243243
throw new IllegalStateException();
244244
}
245245

246-
if (this.blockingNeutral.equals(pBlocking)) {
246+
if (pBlocking.equals(this.blockingNeutral)) {
247247
// Ensures that in the case where several neutrals are stacked, blockingNeutral points to the
248248
// bottom one:
249249
this.blockingNeutral =

0 commit comments

Comments
 (0)