added a check on empty/null images
This commit is contained in:
parent
42bf373251
commit
15437a94a5
|
@ -790,7 +790,7 @@ public class LayerManager {
|
||||||
GWT.log("Adding images: " + listUI);
|
GWT.log("Adding images: " + listUI);
|
||||||
if (listUI != null && listUI.size() > 0) {
|
if (listUI != null && listUI.size() > 0) {
|
||||||
UploadedImageDV img = listUI.get(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);
|
WorkspaceContentDV wsContent = img.getListWsContent().get(img.getListWsContent().size() - 1);
|
||||||
String theImgHTML = "<img src=\"" + wsContent.getLink() + "\"></img>";
|
String theImgHTML = "<img src=\"" + wsContent.getLink() + "\"></img>";
|
||||||
GWT.log("theImgHTML: " + theImgHTML);
|
GWT.log("theImgHTML: " + theImgHTML);
|
||||||
|
|
Loading…
Reference in New Issue