Skip to content

Commit

Permalink
fix(core): possible NPE on validation
Browse files Browse the repository at this point in the history
This occurs when the validation is triggered on a non-yet completed flow, for ex when typing or hitting save too early.
  • Loading branch information
loicmathieu committed Sep 8, 2023
1 parent 7044a4c commit 89f7827
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public List<String> deprecationPaths(Flow flow) {
}

private Stream<String> deprecationTraversal(String prefix, Object object) {
if (ClassUtils.isPrimitiveOrWrapper(object.getClass()) || String.class.equals(object.getClass())) {
if (object == null || ClassUtils.isPrimitiveOrWrapper(object.getClass()) || String.class.equals(object.getClass())) {
return Stream.empty();
}

Expand Down

0 comments on commit 89f7827

Please sign in to comment.