Skip to content

Commit

Permalink
[@unimodules/core] Add support for explicit null values
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed May 5, 2020
1 parent 2c6e5ce commit 651a78d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ default Bundle toBundle() {
Bundle bundle = new Bundle();
for (String key : keys()) {
Object value = get(key);
if (value instanceof String) {
if (value == null) {
bundle.putString(key, null);
} else if (value instanceof String) {
bundle.putString(key, (String) value);
} else if (value instanceof Integer) {
bundle.putInt(key, (Integer) value);
Expand Down

0 comments on commit 651a78d

Please sign in to comment.