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

    A null pointer is one that points to nowhere. When you dereference a pointer p, you say "give me the data at the location stored in "p". When p is a null pointer, the location stored in p is …

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

    Jun 1, 2010 · The time where this value is null I got the java.lang.NullPointerException. How could I deal with this in order to dismiss this exception? I need the condition when the value is null …

  3. java - What is a NullPointerException, and how do I fix it?

    May 8, 2023 · If driver.findElement() fails to find myElement, the value will be null, which means that the attempt to click actually resolved to: null.Click(); Obviously this can't work, so a null …

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

    Mar 15, 2017 · No caso específico do Java, o NullPointerException é lançado nas seguintes situações: Tentar acessar um campo de uma instância cuja referência seja null. Pessoa p = …

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

    Jul 30, 2019 · Java 8 has introduced a new class Optional in java.util package. Advantages of Java 8 Optional: 1.) Null checks are not required. 2.) No more NullPointerException at run …

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

    Sep 3, 2015 · 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 means is that your getTask method is …

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

    Hay una opción que no parece ser muy utilizada para mitigar el problema de las NullPointerExceptions, y es la clase java.util.Objects. Esta clase, presente en el JDK desde …

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

    Feb 19, 2017 · While debugging can you use the BreakPoints view, to capture the null pointers. Window -> Show View -> Breakpoints. In the view there is a "J!" that lets you set breakpoints …

  9. java - Exception.getMessage() is null - Stack Overflow

    Nov 23, 2011 · I blame Google for allowing Exception objects with null getMessage(); when my code was getting a java.lang.NullPointerException it was subsequently causing my exception …

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

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

Refresh