0

How can i check if the return value of Method.invoke is null?

I'm trying to get the getters methods of any class that are not null. The problem is that if use method.invok(class) it throws invokcationtargetExeption exceptions In this code it throws null pointer exceptions https://code.sololearn.com/c7W0Z8GoX9yu/?ref=app

21st Jan 2021, 5:29 PM
Tafinasoa Rabenandrasana
Tafinasoa Rabenandrasana - avatar
1 Answer
0
Maybe this property are not initialized. Use the debugger of your IDE
25th Jan 2021, 10:58 PM
David OrdĂĄs
David OrdĂĄs - avatar