Skip to content
Snippets Groups Projects
Commit 84de7b7f authored by pkupczyk's avatar pkupczyk
Browse files

SSDM-1799 : SOB-203 - handle a case when there are no resolutions at all

SVN: 33920
parent 588032b0
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,10 @@ public class ResolutionChooser extends LayoutContainer
List<ImageResolution> resolutions = prepareResolutions(incomingResolutions);
List<LabeledItem<ImageResolution>> items = new ArrayList<LabeledItem<ImageResolution>>();
if (resolutions != null)
if (resolutions.isEmpty())
{
items.add(new LabeledItem<ImageResolution>(null, viewContext.getMessage(Dict.RESOLUTION_CHOOSER_DEFAULT)));
} else
{
for (ImageResolution resolution : resolutions)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment