Skip to content

Commit 08e68dc

Browse files
committed
Merge pull request #50 from Leanplum/feature/fix-LP-5003
fix(NPE) add null checker at isInstance method.
1 parent e38fd9d commit 08e68dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AndroidSDK/src/com/leanplum/internal/LeanplumManifestHelper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ private static boolean hasComponent(List<ManifestComponent> componentsList, Stri
419419
*/
420420
private static boolean isInstance(ManifestComponent component, String className) {
421421
try {
422+
if (component == null || component.name == null) {
423+
return false;
424+
}
425+
422426
if (component.name.equals(className)) {
423427
return true;
424428
} else {

0 commit comments

Comments
 (0)