Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit f3e4e19

Browse files
author
Dan Richelson
committed
AllFlags no longer returns null when client is offline.
1 parent 2f89b0d commit f3e4e19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/launchdarkly/client/LDClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public Map<String, JsonElement> allFlags(LDUser user) {
205205

206206
if (!initialized()) {
207207
logger.warn("allFlags() was called before Client has been initialized! Returning null.");
208+
return null;
208209
}
209210

210211
if (user == null || user.getKey() == null) {

0 commit comments

Comments
 (0)