Browse Source

Fix NPE on event bus errors.

This keeps happening, and I don't know why we try to unwrap twice.
Probably only makes sense for certain exception types...
pull/562/head
Chris Smith 9 years ago
parent
commit
ee86d1901e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/DMDircMBassador.java

+ 1
- 1
src/com/dmdirc/DMDircMBassador.java View File

@@ -68,7 +68,7 @@ public class DMDircMBassador extends MBassador<DMDircEvent> {
68 68
             }
69 69
 
70 70
             synchronized (errorHandlerLock) {
71
-                final Throwable error = e.getCause().getCause();
71
+                final Throwable error = e.getCause();
72 72
                 publish(new AppErrorEvent(ErrorLevel.HIGH, error.getCause(), error.getMessage(),
73 73
                         ""));
74 74
             }

Loading…
Cancel
Save