Skip to content

Commit

Permalink
fix(orm): fix unwrap exception when using enum
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Mar 27, 2024
1 parent 0eaf1d3 commit 36ec3e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/cryostat/discovery/DiscoveryNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public int hashCode() {
}

public static DiscoveryNode getUniverse() {
return DiscoveryNode.find(NODE_TYPE, BaseNodeType.UNIVERSE)
return DiscoveryNode.find(NODE_TYPE, BaseNodeType.UNIVERSE.getKind())
.<DiscoveryNode>singleResultOptional()
.orElseGet(
() -> environment(BaseNodeType.UNIVERSE.toString(), BaseNodeType.UNIVERSE));
Expand Down

0 comments on commit 36ec3e8

Please sign in to comment.