Skip to content

Commit

Permalink
Issue CruxFramework#729 - File Uploader is throwing an exception when…
Browse files Browse the repository at this point in the history
… uploading image

files
  • Loading branch information
Samuel Cardoso committed Jan 5, 2016
1 parent a2431d0 commit 0288208
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0288208

Please sign in to comment.