Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. private void parseResponse(String response) throws Exception {
  2. if (response != null) {
  3. // some code
  4. }
  5. }
  6.  
  7. DataTap tap = new DataTap();
  8. Deencapsulation.invoke(tap, "parseResponse", "hello");
  9.  
  10. // this line throws NPE
  11. Deencapsulation.invoke(tap, "parseResponse", null);
  12.  
  13. Deencapsulation.invoke(tap, "parseResponse", String.class);
  14.  
  15. Deencapsulation.invoke(tap, "parseResponse", (Object) null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement