/*
- * 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.
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);