Commit 41e7d057 authored by Lucio Maciel's avatar Lucio Maciel
parent c22c8f0a
......@@ -83,7 +83,7 @@ public class RocketChatCache {
listener = (sharedPreferences, changedKey) -> {
if (key.equals(changedKey) && !emitter.isCancelled()) {
String value = getString(key, null);
emitter.onNext(Optional.of(value));
emitter.onNext(Optional.ofNullable(value));
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment