changeset 328:1b11cb5cd396

Fix LaunchException constructor to handle null a description.
author Danesh Dadachanji <ddadacha@redhat.com>
date Thu, 02 Feb 2012 16:15:27 -0500
parents 466a2440ed59
children 2dd44d3ad58d
files ChangeLog netx/net/sourceforge/jnlp/LaunchException.java
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Feb 01 13:09:44 2012 -0500
+++ b/ChangeLog	Thu Feb 02 16:15:27 2012 -0500
@@ -1,3 +1,8 @@
+2012-02-02  Danesh Dadachanji  <ddadacha@redhat.com>
+
+	* netx/net/sourceforge/jnlp/LaunchException.java: Fix message
+	to handle null description
+
 2012-02-01  Danesh Dadachanji  <ddadacha@redhat.com>
 
 	* netx/net/sourceforge/jnlp/LaunchException.java: Add description 
--- a/netx/net/sourceforge/jnlp/LaunchException.java	Wed Feb 01 13:09:44 2012 -0500
+++ b/netx/net/sourceforge/jnlp/LaunchException.java	Thu Feb 02 16:15:27 2012 -0500
@@ -52,7 +52,8 @@
      * 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;