fork download
  1. class Ideone
  2. {
  3. final static Ideone BUGOR = new Ideone();
  4. final String s="";
  5. final static String lalka=null;
  6.  
  7.  
  8. public String concat() {
  9. return lalka.trim()+s;
  10. }
  11.  
  12. public static void main(String[] args) {
  13. System.out.println(BUGOR.concat());
  14. }
  15. }
Runtime error #stdin #stdout #stderr 0.09s 47072KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Exception in thread "main" java.lang.NullPointerException
	at Ideone.concat(Main.java:9)
	at Ideone.main(Main.java:13)