You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ServiceLoader.lookupProviderClasses method dereferences the field _me without first ensuring that it is null. This frequently results in a NullPointerException. It is caught, so the functionality works, but it complicates debugging NPEs expected in other code. The lookupProviderInstances right above it does check for null. It would very nice if this method did so as well.
The text was updated successfully, but these errors were encountered:
Cannot invoke "org.glassfish.hk2.osgiresourcelocator.ServiceLoader.lookupProviderClasses1(java.lang.Class)" because "org.glassfish.hk2.osgiresourcelocator.ServiceLoader._me" is null
It appears possible to reach this line without running initialize, or after running reset:
The
ServiceLoader.lookupProviderClasses
method dereferences the field_me
without first ensuring that it is null. This frequently results in a NullPointerException. It is caught, so the functionality works, but it complicates debugging NPEs expected in other code. ThelookupProviderInstances
right above it does check for null. It would very nice if this method did so as well.The text was updated successfully, but these errors were encountered: