From 10d70e3d2e193a163bcb920e3936d18df6f85582 Mon Sep 17 00:00:00 2001 From: Ludovic Apvrille <ludovic.apvrille@telecom-paristech.fr> Date: Tue, 23 Jun 2020 11:54:30 +0200 Subject: [PATCH] Resolving bug on datatype attr --- src/main/java/ui/avatarbd/AvatarBDBlock.java | 4 ++++ src/main/java/ui/avatarbd/AvatarBDDataType.java | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/main/java/ui/avatarbd/AvatarBDBlock.java b/src/main/java/ui/avatarbd/AvatarBDBlock.java index ffb92c7333..1b05b7eb62 100644 --- a/src/main/java/ui/avatarbd/AvatarBDBlock.java +++ b/src/main/java/ui/avatarbd/AvatarBDBlock.java @@ -1226,6 +1226,10 @@ public class AvatarBDBlock extends TGCScalableWithInternalComponent implements S id = elt.getAttribute("id"); valueAtt = elt.getAttribute("value"); + if (valueAtt == null) { + valueAtt = ""; + } + if (valueAtt.equals("null")) { valueAtt = ""; } diff --git a/src/main/java/ui/avatarbd/AvatarBDDataType.java b/src/main/java/ui/avatarbd/AvatarBDDataType.java index 3e5cf47a59..8ccc157bff 100644 --- a/src/main/java/ui/avatarbd/AvatarBDDataType.java +++ b/src/main/java/ui/avatarbd/AvatarBDDataType.java @@ -513,6 +513,11 @@ public class AvatarBDDataType extends TGCScalableWithInternalComponent implement id = elt.getAttribute("id"); valueAtt = elt.getAttribute("value"); + + if (valueAtt == null) { + valueAtt = ""; + } + if (valueAtt.equals("null")) { valueAtt = ""; } -- GitLab