fork download
  1. class Kakoi
  2. {
  3. final static Ideone fuck = new Ideone();
  4.  
  5. public enum Bagor
  6. {
  7. ___(fuck);
  8. Bagor(Ideone l) { }
  9. }
  10.  
  11. public static class Lalka
  12. {
  13. final Bagor shock;
  14.  
  15. Lalka(Bagor b) {
  16. this.shock = b;
  17. }
  18. }
  19.  
  20. final static Lalka JAVA = new Lalka(Kakoi.Bagor.___);
  21. }
  22.  
  23. class Ideone
  24. {
  25. public static void main(String[] args)
  26. {
  27. System.out.println(Kakoi.Bagor.___);
  28. System.out.println(Kakoi.JAVA.shock.toString());
  29. }
  30. }
Runtime error #stdin #stdout #stderr 0.09s 47020KB
stdin
Standard input is empty
stdout
___
stderr
Exception in thread "main" java.lang.NullPointerException
	at Ideone.main(Main.java:28)