airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patanac...@apache.org
Subject svn commit: r1167399 - /incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/
Date Fri, 09 Sep 2011 23:37:37 GMT
Author: patanachai
Date: Fri Sep  9 23:37:36 2011
New Revision: 1167399

URL: http://svn.apache.org/viewvc?rev=1167399&view=rev
Log:
Fix NullPointer Exception

Modified:
    incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/BooleanParameter.java
    incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/DoubleParameter.java
    incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FileParameter.java
    incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FloatParameter.java
    incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/IntegerParameter.java
    incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/StringParameter.java

Modified: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/BooleanParameter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/BooleanParameter.java?rev=1167399&r1=1167398&r2=1167399&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/BooleanParameter.java
(original)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/BooleanParameter.java
Fri Sep  9 23:37:36 2011
@@ -32,7 +32,7 @@ public class BooleanParameter extends Ab
 	}
 	
 	public String toStringVal(){
-		return this.value.toString();
+	    return (value == null)?null:this.value.toString();
 	}
 	
 	public DataType getType() {

Modified: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/DoubleParameter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/DoubleParameter.java?rev=1167399&r1=1167398&r2=1167399&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/DoubleParameter.java
(original)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/DoubleParameter.java
Fri Sep  9 23:37:36 2011
@@ -32,7 +32,7 @@ public class DoubleParameter extends Abs
 	}
 	
 	public String toStringVal(){
-		return this.value.toString();
+	    return (value == null)?null:this.value.toString();
 	}
 	
 	public DataType getType() {

Modified: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FileParameter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FileParameter.java?rev=1167399&r1=1167398&r2=1167399&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FileParameter.java
(original)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FileParameter.java
Fri Sep  9 23:37:36 2011
@@ -34,7 +34,7 @@ public class FileParameter extends Abstr
 	}
 	
 	public String toStringVal(){
-		return this.value.toString();
+	    return (value == null)?null:this.value.toString();
 	}
 	
 	public DataType getType() {

Modified: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FloatParameter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FloatParameter.java?rev=1167399&r1=1167398&r2=1167399&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FloatParameter.java
(original)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/FloatParameter.java
Fri Sep  9 23:37:36 2011
@@ -32,7 +32,7 @@ public class FloatParameter extends Abst
 	}
 	
 	public String toStringVal(){
-		return this.value.toString();
+	    return (value == null)?null:this.value.toString();
 	}
 	
 	public DataType getType() {

Modified: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/IntegerParameter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/IntegerParameter.java?rev=1167399&r1=1167398&r2=1167399&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/IntegerParameter.java
(original)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/IntegerParameter.java
Fri Sep  9 23:37:36 2011
@@ -32,7 +32,7 @@ public class IntegerParameter extends Ab
 	}
 	
 	public String toStringVal(){
-		return this.value.toString();
+	    return (value == null)?null:this.value.toString();
 	}
 	
 	public DataType getType() {

Modified: incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/StringParameter.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/StringParameter.java?rev=1167399&r1=1167398&r2=1167399&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/StringParameter.java
(original)
+++ incubator/airavata/trunk/modules/commons/gfac-schema/src/main/java/org/apache/airavata/commons/gfac/type/parameter/StringParameter.java
Fri Sep  9 23:37:36 2011
@@ -33,7 +33,7 @@ public class StringParameter extends Abs
 	}
 	
 	public String toStringVal(){
-		return this.value.toString();
+	    return (value == null)?null:this.value.toString();
 	}
 
 	public DataType getType() {



Mime
View raw message