fix: resolve exception when androidmanifest.xml is not found (PR #1978)
This commit is contained in:
@@ -223,6 +223,10 @@ public class AndroidManifestParser {
|
||||
}
|
||||
|
||||
private static Document parseAndroidManifest(ResourceFile androidManifest) {
|
||||
if (androidManifest == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String content = androidManifest.loadContent().getText().getCodeStr();
|
||||
|
||||
return parseXml(content);
|
||||
|
||||
Reference in New Issue
Block a user