Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
nullpointerexception
- Page 1
Null Pointer Exception in Java Application – Need Fixing
Programming
Software Development
2 Months Ago
by YashSmith
My Java application crashes with a
NullPointerException
when trying to access an object property. Here's the …(String[] args) { String text = null; System.out.println(text.length()); //
NullPointerException
here } } How can I properly handle this scenario?
NullPointerexception ??
Programming
Software Development
17 Years Ago
by arkaprava
… project 1stly it takes value from the console den a
NullPointerException
was happened at the following line of the entity class… the ENTITY class but the same `
NullPointerException
` (in the same line)is happening throwing of `
NullPointerException
` did not result any fruitful Plz…
NullPointerException
Programming
Software Development
12 Years Ago
by wallet123
…: i passed here Test12: i passed here java.lang.
NullPointerException
at app.util.DatabaseConnect.connectMeToDatabase(DatabaseConnect.java:22) at app….run(Unknown Source) Test8: i passed here java.lang.
NullPointerException
at app.util.DatabaseConnect.connectMeToDatabase(DatabaseConnect.java:22) at app…
NullPointerException....Please help me.....
Hardware and Software
Linux and Unix
15 Years Ago
by bthug211
Please help me ... a
NullPointerException
appears here's the codes import java.util.Random; public … help me..why when I run the MainGameV1 class, a
NullPointerException
appears?please solve this error..tnx
NullPointerException
Programming
Software Development
15 Years Ago
by benregn
Hi, I'm getting this
NullPointerException
in one of my classes (state). This design is done …: [code]Exception in thread "Thread-3" java.lang.
NullPointerException
at hotdrinksmachine.MessageDelay.run(InsertMoney.java:102) at java.lang…
NullPointerException
Programming
Software Development
13 Years Ago
by Dexxta27
… to interact with a databse but I keep getting a
NullPOinterException
. I know it means that something is set to null…: Exception in thread "AWT-EventQueue-0" java.lang.
NullPointerException
at AKDatabase.CSubmitActionPerformed(AKDatabase.java:193) at AKDatabase.access$000…
Re: NullPointerException
Programming
Software Development
13 Years Ago
by NormR1
…; Exception in thread "AWT-EventQueue-0" java.lang.
NullPointerException
at AKDatabase.CSubmitActionPerformed(AKDatabase.java:193) Look at line 193…
Re: NullPointerException
Programming
Software Development
13 Years Ago
by Dexxta27
…: Exception in thread "AWT-EventQueue-0" java.lang.
NullPointerException
at dbproject.DBProject.jButton4ActionPerformed(DBProject.java:425) at dbproject.DBProject…
Re: NullPointerException
Programming
Software Development
13 Years Ago
by NormR1
Did you add the printStackTrace() calls to all the catch blocks? I would expect to see the trace from that before the
NullPointerException
error. What variable is null at line 425? Why is it null?
Re: NullPointerException
Programming
Software Development
13 Years Ago
by Dexxta27
….prepareStatement(sql); When I add printStackTrace(), instead of giving a
NullPointerException
when the button is triggered, it just gives an SQLException…
NullPointerException:
Programming
Software Development
18 Years Ago
by cassyjack
Does anyone know why I am getting an
NullPointerException
:Null error for this method? [CODE] public int[] checkISBN() { String …
Re: NullPointerException:
Programming
Software Development
18 Years Ago
by aniseed
Your post does not indicate any reason for getting a
NullPointerException
. My guess is that the [B]isbn[/B] String is null but that's just a guess. Could you print out the stack trace and see what line it is occurring at? That would help you locate the exact cause.
nullpointerexception
Programming
Software Development
16 Years Ago
by JConnor135
… then display the updated list, but I keep getting a
nullpointerexception
, does anyone know where I went wrong? [ICODE]import java…
nullPointerException
Programming
Software Development
15 Years Ago
by nam5a
… continues to iterate and I believe this is when the
nullPointerException
is invoked. I've looked over this and cannot figure…
Re: nullPointerException
Programming
Software Development
15 Years Ago
by nam5a
Exception in thread "main" java.lang.
NullPointerException
at Check.containsFile(Check.java:70) at Check.searchForFile(Check.java:55) at Check.searchForFile(Check.java:61) at Check.main(Check.java:107)
Re: nullPointerException
Programming
Software Development
15 Years Ago
by nam5a
… of code Exception in thread "main" java.lang.
NullPointerException
at Check.containsFile --> for (int i = 0; i <…
Re: nullPointerException
Programming
Software Development
15 Years Ago
by nam5a
When the method searchForFile() is ran, it prints out that the file is found (if you created it), once this happens the method should terminate but it does not. I don't understand why the method searchForFile() does not terminate. It continues iterating and this is when the
nullPointerException
is returned.
NullPointerException.....WHY!?
Programming
Software Development
15 Years Ago
by lrolsto1
… line while searching currentLine = bread.readLine(); index = currentLine.indexOf(searchString); //
NULLPOINTEREXCEPTION
if(index > 0){ // positive index if found System.out…
Re: NullPointerException.....WHY!?
Programming
Software Development
15 Years Ago
by BhagatS
Hello lrolsto1. You need to consider the values your variables are getting in every iteration through the while loop. The problem is, that a variable is taking null value in some iteration of the while loop, thus resulting in a
NullPointerException
being thrown. So you need to check the values your variables are taking.
NullPointerException
Programming
Software Development
15 Years Ago
by bigsurya
I am getting a
NullPointerException
in the statement which I've hidden. Can some1 tell …
Re: NullPointerException
Programming
Software Development
15 Years Ago
by BestJewSinceJC
… to reference (call a method on) null gives you a
NullPointerException
, hence your error initially. If this info is a lot…
NullPointerException
Programming
Software Development
15 Years Ago
by idlackage
I've got a
NullPointerException
at line 50 (and the init on line 12). Can'…
NullPointerException
Programming
Software Development
14 Years Ago
by XxPKMNxX
… [CODE]"Exception in thread "main" java.lang.
NullPointerException
at useCADSL.main(useCADSL.java:5)"[/CODE] i know…
NullPointerException
Programming
Software Development
14 Years Ago
by ahmed_fawzy
…;'"); } catch(SQLException ex) { ex.printStackTrace(); } return Rs; }[/CODE] give
NullPointerException
at [CODE]getOrders_st = Conn.createStatement();[/CODE] If Any One Know…
NullPointerException
Programming
Software Development
14 Years Ago
by manish250
…;.But when assigning the string to mesg it is giving
nullpointerexception
NullPointerException Help
Programming
Software Development
13 Years Ago
by TTTHXC
… string conmtains more than 2 words, my program crashes with
NullPointerException
. public static boolean checkOpcode(String opcode) { StringTokenizer st = new StringTokenizer…
NullPointerException
Programming
Software Development
11 Years Ago
by simran_4
Hello all, I am stuck with a
nullpointerException
at line 41 and 60.Can someone please help me …
NullPointerException On a Calling a Function
Programming
Software Development
14 Years Ago
by Nathan Campos
…the problem is that it's calling a [b]
NullPointerException
[/b]. My code is like this(of course it … menu: [code]TRACE: <at java.lang.
NullPointerException
: 0>, Exception caught in Display class java.lang….
NullPointerException
: 0 at mp.releaser.MPReleaser.FirstPart(MPReleaser.java…
Re: NullPointerException On a Calling a Function
Programming
Software Development
14 Years Ago
by Nathan Campos
… what I got now: [code]TRACE: <at java.lang.
NullPointerException
: 0>, Exception caught in Display class java.lang….
NullPointerException
: 0 at mp.releaser.MPReleaser.commandAction(MPReleaser.java:130) at …
NullPointerException in Servlet.
Programming
Software Development
13 Years Ago
by slasherpunk
… but I'm getting the following error. I thought that
NullPointerException
was because there were no cookies at all in the… () that prevented it from fulfilling this request. exception java.lang.
NullPointerException
PageCount.doGet(PageCount.java:24) javax.servlet.http.HttpServlet.service…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC