Skip to content

Commit b00ecc4

Browse files
committed
Merge branch 'develop' of github.com:secure-software-engineering/FlowDroid into develop
2 parents 773dfa5 + 4d0fa40 commit b00ecc4

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

soot-infoflow-android/src/soot/jimple/infoflow/android/axml/AXmlNode.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,19 @@ public List<AXmlNode> getChildrenWithTag(String tag) {
198198
return children;
199199
}
200200

201+
/**
202+
* Removes an element from the attributes.
203+
*
204+
* @param key the key
205+
* @return the previously associated value or null
206+
*/
207+
public AXmlAttribute<?> removeAttribute(String key) {
208+
if (this.attributes == null)
209+
return null;
210+
return this.attributes.remove(key);
211+
}
212+
213+
201214
/**
202215
* Returns a map which contains all attributes. The keys match the attributes'
203216
* names.

soot-infoflow-android/src/soot/jimple/infoflow/android/axml/parsers/AXML20Parser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ public void attr(String ns, String name, int resourceId, int type, Object obj) {
7878
// Without a name, we cannot really carry on
7979
return;
8080
}
81+
if (tname == null)
82+
tname = String.valueOf(resourceId);
8183
}
8284
} else
8385
tname = name.trim();

0 commit comments

Comments
 (0)