About 59 results
Open links in new tab
  1. What is a NullPointerException, and how do I fix it?

    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 causing the …

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

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

  3. How do I avoid checking for nulls in Java? - Stack Overflow

    For those fast to downvote (and not so fast to read documentation) I would like to say that I've never caught a null-pointer exception (NPE) in my life. But this possibility was intentionally designed by the …

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

    Jun 1, 2010 · It's only if you try accessing whatever a null reference points to that you get the exception. So calling methods or accessing other instance members of the object is out of the question.

  5. How to solve java.lang.NullPointerException error? [duplicate]

    Sep 3, 2015 · Integer myInteger = null; int n = myInteger.intValue(); The code tries to grab the intValue of myInteger, but since it is null, it does not have one: a null pointer exception happens. What this …

  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 Studio etc...

  7. What is a NullPointerException, and how do I fix it?

    May 8, 2023 · 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 …

  8. java - ArrayList null pointer exception - Stack Overflow

    Jan 25, 2014 · Declaring a reference variable to an object does nothing more than reserve space for you to set it to a reference of a real object at some point in the future. Until you set it to a reference, it …

  9. java - O que é a NullPointerException e quais são suas principais ...

    May 12, 2015 · O que são exceções NullPointerException? Quais são suas principais causas? Que métodos/práticas podem ser utilizadas para se prevenir?

  10. What is a NullReferenceException, and how do I fix it?

    I have some code and when it executes, it throws a NullReferenceException, saying: Object reference not set to an instance of an object. What does this mean, and what can I do to fix this error?