X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FPlatform.java;h=2da23876c8fcfd3047acf0dc0092b2df6bbc41af;hb=8c8e7f9405ffc2e654aa9e2e10e4f9306b432d48;hp=976a1422e9d4b50fbc37d80d524351be039033ca;hpb=f46df9cf452b0af0d377bbd76954244101a1e856;p=org.ibex.core.git diff --git a/src/org/xwt/Platform.java b/src/org/xwt/Platform.java index 976a142..2da2387 100644 --- a/src/org/xwt/Platform.java +++ b/src/org/xwt/Platform.java @@ -60,7 +60,11 @@ public abstract class Platform { } System.err.println(" " + os_name + " ==> org.xwt.plat." + platform_class); - if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance(); + try { + if (platform_class != null) Class.forName("org.xwt.plat." + platform_class).newInstance(); + } catch (InstantiationException e) { + throw e.getCause(); + } String term = Platform.getEnv("TERM"); Log.color = term != null && term.length() != 0 && !term.equals("cygwin");