-
Notifications
You must be signed in to change notification settings - Fork 70
[flagd] [BUG] Null Pointer Dereference in getFlagMetadata() #1708
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
In
Line 270 in 7760d09
| private static ImmutableMetadata getFlagMetadata(Map<String, Object> currentFlagSetMetadata, FeatureFlag flag) { |
currentFlagSetMetadata and/or flag.getMetadata() can be null, causing entrySet() to throw NPE.
A defensive check for null should be added to fix the problem for servers that don't suport metadata.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed