modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java | 12 +++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
New commits: commit e5003d37187cd75b7fa731824257003c082680b7 Author: John Mazzitelli mazz@redhat.com Date: Mon Dec 20 13:21:44 2010 -0500
BZ 616422 - the previous button now works. was hitting a NPE that we now protect against
diff --git a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java index 6b90111..0423952 100644 --- a/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java +++ b/modules/enterprise/gui/coregui/src/main/java/org/rhq/enterprise/gui/coregui/client/bundle/create/BundleUploadDataStep.java @@ -98,11 +98,13 @@ public class BundleUploadDataStep extends AbstractWizardStep { public boolean previousPage() { wizard.getView().hideMessage();
- for (BundleFileUploadForm uploadForm : this.uploadForms) { - if (uploadForm.isUploadInProgress()) { - handleUploadError("[" + uploadForm.getName() + "] " + MSG.view_bundle_createWizard_uploadInProgress(), - false); - return false; + if (this.uploadForms != null) { + for (BundleFileUploadForm uploadForm : this.uploadForms) { + if (uploadForm.isUploadInProgress()) { + handleUploadError("[" + uploadForm.getName() + "] " + + MSG.view_bundle_createWizard_uploadInProgress(), false); + return false; + } } }