Skip to content

Commit

Permalink
null check before passing a new TypeBinding to requestor
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Dec 9, 2024
1 parent 3730b06 commit 99781c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ public void accept(ISourceType[] sourceType, PackageBinding packageBinding,
IBinaryType binaryType = answer.getBinaryType();
if (binaryType != null) {
BinaryTypeBinding binding = lu.cacheBinaryType(binaryType, null);
requestor.acceptBinding(bindingKey, new TypeBinding(bindingResolver, binding));
if( binding != null )
requestor.acceptBinding(bindingKey, new TypeBinding(bindingResolver, binding));
}
}
}
Expand Down

0 comments on commit 99781c9

Please sign in to comment.