You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Xpp3Dom.getValue() is annotated @NonNull (line 141) but returns value which defaults to null when constructed with Xpp3Dom(String name) (line 92). This violates the non-null contract — callers who trust the annotation and omit a null check will encounter NullPointerException.
The builder at Xpp3DomBuilder.java:201 already works around this:
element.setValue(""); // null in xpp3dom, but we don't do that around here
Fix: initialize value to "" in the one-arg constructor, or change the field declaration to private String value = "";.
Activity