added a check on empty/null images

This commit is contained in:
Francesco Mangiacrapa 2022-07-26 16:52:29 +02:00
parent 42bf373251
commit 15437a94a5
1 changed files with 1 additions and 1 deletions

View File

@ -790,7 +790,7 @@ public class LayerManager {
GWT.log("Adding images: " + listUI);
if (listUI != null && listUI.size() > 0) {
UploadedImageDV img = listUI.get(0);
if (img.getListWsContent() != null) {
if (img!= null && img.getListWsContent() != null) {
WorkspaceContentDV wsContent = img.getListWsContent().get(img.getListWsContent().size() - 1);
String theImgHTML = "<img src=\"" + wsContent.getLink() + "\"></img>";
GWT.log("theImgHTML: " + theImgHTML);