Skip to content

Commit

Permalink
add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Jan 4, 2022
1 parent ccac76b commit b540e29
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ private static Class<?> getDirectWithAttributesChannelClass() {
}

private static MethodHandle getChannelAttributeMh(Class<?> directWithAttributesChannelClass) {
if (directWithAttributesChannelClass == null) {
return null;
}

try {
return MethodHandles.lookup()
.findVirtual(
Expand Down

0 comments on commit b540e29

Please sign in to comment.