Community
Participate
Working Groups
get an NullPointerException in TypeBinding.getInterface() line 189. this method should handle NullPointerException and return NO_INTERFACES.
Which build are you using ? Are you talking about the API or non API type binding ? Do you have steps to reproduce ? If non API, then we shouldn't change anything for free.
org.eclipse.jdt.internal.compiler.lookup.TypeBinding does not implement getInterfaces(). Moving to the dom. The NPE happens on the first line of the method because the binding is null.
I can add extra null check, but the binding should not be null. Could you provide a test case that leads to this? Therefore you should not be able to get a type binding in this case. Thanks.
Could you please comment? I need some information on how you ended up with a null binding. Do you have errors in your code? If yes, could you please provide a test case? Thanks.
actually, i can't create a test case for you because it is not happening all the time. But if you can add a NullPointer check inside the method, i think it will be great. Thanks.
I will. But if the binding is null, you might have other failures.
it is fine for me.
Added extra null check. If you get such a failure again, please open another bug report and provide a test case.
Verified for 3.0-M7 with build I200402102000.