Fix the observer effect in Images Flipper plugin

Reviewed By: oprisnik, wizh

Differential Revision: D31379424

fbshipit-source-id: 96040dd0d37442d80a660814bd356571d075aa2c
This commit is contained in:
Artem Kholodnyi
2021-10-12 09:14:35 -07:00
committed by Facebook GitHub Bot
parent 1fae3a24c9
commit 11e7bbf9cf
2 changed files with 29 additions and 31 deletions

View File

@@ -210,7 +210,7 @@ public class FlipperObject {
return put(name, v.toFlipperObject());
}
public Builder put(String name, FlipperArray a) {
public Builder put(String name, @Nullable FlipperArray a) {
try {
mJson.put(name, a == null ? null : a.mJson);
} catch (JSONException e) {
@@ -223,7 +223,7 @@ public class FlipperObject {
return put(name, b.build());
}
public Builder put(String name, FlipperObject o) {
public Builder put(String name, @Nullable FlipperObject o) {
try {
mJson.put(name, o == null ? null : o.mJson);
} catch (JSONException e) {