Skip to content

Commit d22c403

Browse files
Update Branch-SDK/src/main/java/io/branch/referral/ServerRequestRegisterInstall.java
Co-authored-by: matter-code-review[bot] <150888575+matter-code-review[bot]@users.noreply.github.com>
1 parent 14d9823 commit d22c403

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Branch-SDK/src/main/java/io/branch/referral/ServerRequestRegisterInstall.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ public void onPreExecute() {
6464

6565
if (Branch.getInstance() != null) {
6666
JSONObject configurations = Branch.getInstance().getConfigurationController().serializeConfiguration();
67-
getPost().put(Defines.Jsonkey.OperationalMetrics.getKey(), configurations);
67+
if (configurations != null && configurations.length() > 0) {
68+
getPost().put(Defines.Jsonkey.OperationalMetrics.getKey(), configurations);
69+
}
6870
}
6971

7072
} catch (JSONException e) {

0 commit comments

Comments
 (0)