Archived
0

fix message in exception screen

This commit is contained in:
iMoHax
2016-03-14 16:33:16 +03:00
parent 5c482b16f2
commit dceba046e0

View File

@@ -179,7 +179,8 @@ public class Screeners {
public static void showException(Throwable ex){ public static void showException(Throwable ex){
Alert alert = new Alert(Alert.AlertType.ERROR); Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("Exception Dialog"); alert.setTitle("Exception Dialog");
alert.setHeaderText(ex.getLocalizedMessage()); String text = ex.getLocalizedMessage();
alert.setHeaderText(text != null ? text : ex.getMessage());
// Create expandable Exception. // Create expandable Exception.
StringWriter sw = new StringWriter(); StringWriter sw = new StringWriter();