diff --git a/src/main/java/org/cruxframework/crux/widgets/client/uploader/AbstractFileUploader.java b/src/main/java/org/cruxframework/crux/widgets/client/uploader/AbstractFileUploader.java index 8bf4a59..007cd98 100644 --- a/src/main/java/org/cruxframework/crux/widgets/client/uploader/AbstractFileUploader.java +++ b/src/main/java/org/cruxframework/crux/widgets/client/uploader/AbstractFileUploader.java @@ -530,7 +530,16 @@ protected ProgressBar createProgressBar() protected ProgressBar getProgressBar(String fileName) { FlowPanel filePanel = filePanelWidgets.get(fileName); - ProgressBar progressBar = (ProgressBar) filePanel.getWidget(filePanel.getWidgetCount()-1); + ProgressBar progressBar = null; + Widget widget = filePanel.getWidget(filePanel.getWidgetCount()-1); + if(widget instanceof ProgressBar) + { + progressBar = (ProgressBar) widget; + } + else + { + progressBar = (ProgressBar) filePanel.getWidget(filePanel.getWidgetCount()-2); + } return progressBar; }