File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
inventory/src/main/java/org/flyve/inventory/categories Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ public void toXMLWithoutPrivateData(XmlSerializer serializer) {
161161 serializer .startTag (null , mType );
162162
163163 for (Map .Entry <String , CategoryValue > entry : this .entrySet ()) {
164- if (!this .get (entry .getKey ()).isPrivate ()) {
164+ if (this .get (entry .getKey ()).isPrivate () != null
165+ && !this .get (entry .getKey ()).isPrivate ()) {
165166 setXMLValues (serializer , entry );
166167 }
167168 }
@@ -240,7 +241,8 @@ public JSONObject toJSONWithoutPrivateData() {
240241 try {
241242 JSONObject jsonCategories = new JSONObject ();
242243 for (Map .Entry <String ,CategoryValue > entry : this .entrySet ()) {
243- if (!this .get (entry .getKey ()).isPrivate ()) {
244+ if (this .get (entry .getKey ()).isPrivate () != null
245+ && !this .get (entry .getKey ()).isPrivate ()) {
244246 setJSONValues (jsonCategories , entry );
245247 }
246248 }
You can’t perform that action at this time.
0 commit comments