Skip to content

Commit bd2183d

Browse files
committed
NPE check
1 parent 8d48557 commit bd2183d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

soot-infoflow-android/src/soot/jimple/infoflow/android/source/parsers/xml/AbstractXMLSourceSinkParser.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ protected void handleStarttagCategory(Attributes attributes) {
190190
if (strCategory != null && !strCategory.isEmpty())
191191
strCategory = strCategory.trim();
192192

193-
String strDescription = attributes.getValue(XMLConstants.DESCRIPTION_ATTRIBUTE).trim();
193+
String strDescription = attributes.getValue(XMLConstants.DESCRIPTION_ATTRIBUTE);
194+
195+
if (strDescription != null)
196+
strDescription = strDescription.trim();
194197
if (strDescription != null && !strDescription.isEmpty())
195198
strDescription = strDescription.trim();
196199

0 commit comments

Comments
 (0)