About 82,500 results
Open links in new tab
  1. java - What is a NullPointerException, and how do I fix it? - Stack ...

    What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from …

  2. NullPointerException when creating an array of objects

    I have been trying to create an array of a class containing two values, but when I try to apply a value to the array I get a NullPointerException. public class ResultList { public String name;...

  3. How to solve java.lang.NullPointerException error?

    Sep 3, 2015 · Exception in thread "main" java.lang.NullPointerException at AnotherClassLoader.loadClass(test.java:58) at test.main(test.java:30) at …

  4. java - A good way to debug nullPointerException - Stack Overflow

    Feb 19, 2017 · You can set java.lang.NullPointerException. So once null pointer exception is thrown, you can check which variable is causing null. Other thing you can do is capture …

  5. How to fix NullPointerException in Java? - Stack Overflow

    Sep 29, 2013 · How to fix NullPointerException in Java? By making sure the variable is not null when being used. Check your code in Assignment2.java file, line 104 to check which variable …

  6. java - ¿Cuál es la solución a todos los errores NullPointerException ...

    En mi corta experiencia he descubierto que la solución a todos los problemas de java es saber ejecutar un debug con cualquier IDE que estés utilizando sea Eclipse, Netbeans , Android …

  7. java - Что такое Null Pointer Exception и как его исправить?

    Mar 23, 2019 · 72 Что из себя представляет исключение Null Pointer Exception (java.lang.NullPointerException) и почему оно может происходить?

  8. Android Studio: fix java.lang.NullPointerException

    Dec 17, 2015 · Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference

  9. java - Why does Collectors.toMap () throw NullPointerException …

    Jul 21, 2025 · 0 Collectors.toMap() throws NullPointerException when values are null because it uses Map.merge() internally, which doesn’t allow null values without a merge function. To fix it, …

  10. exception - java.lang.NullPointerException - Stack Overflow

    Jun 1, 2010 · 3 This question already has answers here: What is a NullPointerException, and how do I fix it? (12 answers)