Skip to content

Commit 5d88fa5

Browse files
committed
fix(synchronized): suspected simultaneous access to ArrayList from multiple threads.
1 parent 45c9a33 commit 5d88fa5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ public class LeanplumManifestHelper {
7878
/**
7979
* Gets application components from AndroidManifest.xml file.
8080
*/
81-
private static void parseManifestNodeChildren() {
81+
private static synchronized void parseManifestNodeChildren() {
82+
if (manifestData != null) {
83+
return;
84+
}
8285
manifestData = new ManifestData();
8386
byte[] manifestXml = getByteArrayOfManifest();
8487
Document manifestDocument = getManifestDocument(manifestXml);

0 commit comments

Comments
 (0)