We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62ecab9 commit e59b518Copy full SHA for e59b518
parse/src/main/java/com/parse/ManifestInfo.java
@@ -63,6 +63,12 @@ public static String getVersionName() {
63
PLog.e(TAG, "Couldn't find info about own package", e);
64
versionName = "unknown";
65
}
66
+ if (versionName == null) {
67
+ // Some contexts, such as instrumentation tests can always have this value
68
+ // return as null. We will change to "unknown" for this case as well, so that
69
+ // an exception isn't thrown for adding a null header later.
70
+ versionName = "unknown";
71
+ }
72
73
74
0 commit comments