X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=plugins%2Forg.argeo.slc.client.ui%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fclient%2Fui%2Fmodel%2FSingleResultNode.java;h=afd1249898858f82452d877f2b83ebfe55ba1466;hb=018795e1c7fb82445c43dcb28fdc515e8cb624ac;hp=aa4acea9c9f3d9e32d83d3eaabbae075b1a0ab74;hpb=d50c0fe50cd69947bc7146991afa0826a8c8f53b;p=gpl%2Fargeo-slc.git diff --git a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/SingleResultNode.java b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/SingleResultNode.java index aa4acea9c..afd124989 100644 --- a/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/SingleResultNode.java +++ b/plugins/org.argeo.slc.client.ui/src/main/java/org/argeo/slc/client/ui/model/SingleResultNode.java @@ -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_AGGREGATED_STATUS)) { + check = node.getNode(SlcNames.SLC_AGGREGATED_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);