From cb09f782e2d6c3f92f5f1d5b870a19b6ecbb8f24 Mon Sep 17 00:00:00 2001 From: Danesh Dadachanji Date: Thu, 2 Feb 2012 16:15:27 -0500 Subject: Fix LaunchException constructor to handle null a description. --- netx/net/sourceforge/jnlp/LaunchException.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'netx') diff --git a/netx/net/sourceforge/jnlp/LaunchException.java b/netx/net/sourceforge/jnlp/LaunchException.java index 321d661..5257607 100644 --- a/netx/net/sourceforge/jnlp/LaunchException.java +++ b/netx/net/sourceforge/jnlp/LaunchException.java @@ -52,7 +52,8 @@ public class LaunchException extends Exception { * Creates a LaunchException without detail message. */ public LaunchException(JNLPFile file, Exception cause, String severity, String category, String summary, String description) { - super(severity + ": " + category + ": " + summary + " " + description); + super(severity + ": " + category + ": " + summary + " " + + (description == null ? "" : description)); this.file = file; this.category = category; -- cgit v1.2.3