From 8c8e7f9405ffc2e654aa9e2e10e4f9306b432d48 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 08:04:27 +0000 Subject: [PATCH] 2004/01/19 21:12:04 darcs-hash:20040130080427-2ba56-d619a1a3e51f6fa45fa172cc0049c5d5c509a25c.gz --- src/org/xwt/Platform.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"); -- 1.7.10.4