]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/SingleResultNode.java
remove useless carriage return
[gpl/argeo-slc.git] / plugins / org.argeo.slc.client.ui / src / main / java / org / argeo / slc / client / ui / model / SingleResultNode.java
index aa4acea9c9f3d9e32d83d3eaabbae075b1a0ab74..d587a932195cf1b49e0e71c4db5e3180426e9649 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2012 Mathieu Baudier
+ * Copyright (C) 2007-2012 Argeo GmbH
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -49,9 +49,15 @@ public class SingleResultNode extends ResultParent implements
 
        public boolean refreshPassedStatus() {
                try {
-                       Node check = node.getNode(SlcNames.SLC_STATUS);
-                       passed = check.getProperty(SlcNames.SLC_SUCCESS).getBoolean();
-                       return passed;
+                       Node check;
+                       if (node.hasNode(SlcNames.SLC_STATUS)) {
+                               check = node.getNode(SlcNames.SLC_STATUS);
+                               passed = check.getProperty(SlcNames.SLC_SUCCESS).getBoolean();
+                               return passed;
+                       } else
+                               // Happens only if the UI triggers a refresh while the execution
+                               // is in progress and the corresponding node is being built
+                               return false;
                } catch (RepositoryException re) {
                        throw new SlcException(
                                        "Unexpected error while checking result status", re);