Revision 663f4308
Added by Patrick Plitzner almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/media/MediaDetailElement.java | ||
---|---|---|
77 | 77 |
image.setHeight(imageInfo.getHeight()); |
78 | 78 |
image.setWidth(imageInfo.getWidth()); |
79 | 79 |
} |
80 |
singleMediaRepresentationPart.getMediaRepresentation().setMimeType(imageInfo.getMimeType()); |
|
81 |
singleMediaRepresentationPart.getMediaRepresentation().setSuffix(imageInfo.getSuffix()); |
|
80 |
if(singleMediaRepresentationPart.getMediaRepresentation()!=null){ |
|
81 |
singleMediaRepresentationPart.getMediaRepresentation().setMimeType(imageInfo.getMimeType()); |
|
82 |
singleMediaRepresentationPart.getMediaRepresentation().setSuffix(imageInfo.getSuffix()); |
|
83 |
} |
|
82 | 84 |
disposeImage(); |
83 | 85 |
element_image = formFactory.createImageElement(parentFormElement, uri, style); |
84 | 86 |
StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true); |
Also available in: Unified diff
ref #8129 Fix potential NPE