Ignore:
Timestamp:
03/04/14 12:07:41 (11 years ago)
Author:
pharms
Message:
  • fixed bug in reporting exceptions without message
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/SWTConsole.java

    r1081 r1431  
    9090        MessageBox messageBox = new MessageBox(output.getShell(), SWT.ERROR); 
    9191        messageBox.setText("Error"); 
    92         messageBox.setMessage(e.getMessage()); 
     92         
     93        if (e.getMessage() != null) { 
     94            messageBox.setMessage(e.getMessage()); 
     95        } 
     96        else { 
     97            messageBox.setMessage("Unexpected exception occurred: " + e); 
     98        } 
    9399        messageBox.open(); 
    94100         
Note: See TracChangeset for help on using the changeset viewer.