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

    Now Java 14 has added a new language feature to show the root cause of NullPointerException. This language feature has been part of SAP commercial JVM since 2006. In Java 14, the …

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

    Sep 3, 2015 · A NullPointerException means that one of the variables you are passing is null, but the code tries to use it like it is not. For example, If I do this: Integer myInteger = null; int n = …

  3. How can I solve Exception in thread "main" java.lang ...

    Oct 19, 2013 · IMO more important than solving this exception, is the fact that you should learn to read the stacktrace and understand what it says, so you could detect the problems and solve …

  4. I am getting a java.lang.NullPointerException when using Apache …

    Aug 1, 2022 · I fixed that part of the code and my program is now printing the first row, but after printing the first row the program then throws another exception and doesnt print the second …

  5. How to fix "Exception in thread "main" …

    Dec 7, 2014 · It tells you that the exception occurs in your code at line 47 of assignment2g2.java. Go to that line of code, and find out what's null there that's not supposed to be null.

  6. Exception in thread "main" java.lang.NullPointerException

    Nov 10, 2013 · I'm getting the following error: Input date: Exception in thread "main" java.lang.NullPointerException at Project03.GetMonthInfo(Project03Driver.java:89) at …

  7. oop - Exception in thread "main" java.lang.NullPointerException …

    Jan 29, 2022 · Exception in thread "main" java.lang.NullPointerException when trying to run code in compiler [duplicate]

  8. Exception in thread "main" java.lang.NullPointerException?

    Dec 1, 2015 · I am a beginner in java programming. I am trying to recreate a simplified version of the card game war. I ran my program which is posted below and it came back with this error: …

  9. Cannot invoke "java.net.URL.toExternalForm()" because "location" …

    Nov 23, 2022 · So, the first step to solve this problem would be to create the folder. To do this, go to the "Files" section in the navigation bar, then expand the folders until you reach the "main" …

  10. exception - Cannot invoke "java.io.Console.readLine ()" because …

    Nov 19, 2022 · I am trying to get the input from user by using System.console. However, I get a NullPointerException when I run the following code (I am trying to get input from the user). …

Refresh