airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject [3/4] git commit: fixing NPE on AIRAVATA-1052
Date Thu, 06 Mar 2014 17:15:28 GMT
fixing NPE on AIRAVATA-1052


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/28f0b429
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/28f0b429
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/28f0b429

Branch: refs/heads/master
Commit: 28f0b429530b6d46fa3d5f57334cb28ad07a7269
Parents: 5e3f0cf
Author: chathuri <chathuri@apache.org>
Authored: Thu Mar 6 12:13:47 2014 -0500
Committer: chathuri <chathuri@apache.org>
Committed: Thu Mar 6 12:13:47 2014 -0500

----------------------------------------------------------------------
 .../airavata/persistance/registry/jpa/resources/Utils.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/28f0b429/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/Utils.java
----------------------------------------------------------------------
diff --git a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/Utils.java
b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/Utils.java
index 9d96f51..e8f39d7 100644
--- a/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/Utils.java
+++ b/modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/Utils.java
@@ -747,7 +747,9 @@ public class Utils {
         if (o != null){
             TaskDetailResource taskDetailResource = (TaskDetailResource)createTaskDetail(o.getTask());
             jobDetailResource.setTaskDetailResource(taskDetailResource);
-            jobDetailResource.setJobDescription(new String(o.getJobDescription()));
+            if (o.getJobDescription() != null){
+                jobDetailResource.setJobDescription(new String(o.getJobDescription()));
+            }
             jobDetailResource.setJobId(o.getJobId());
             jobDetailResource.setCreationTime(o.getCreationTime());
             jobDetailResource.setComputeResourceConsumed(o.getComputeResourceConsumed());


Mime
View raw message