TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:65] null ptr excpetion - java



On Thu, Feb 10, 2000 at 04:29:23PM -0600, erick@pagelab.net wrote:

> I cannot remember, or maybe never really experinced, what a null
> pointer exception.  Basically what I am doing is I have 2 classes, one
> is kind of a template and teh other is teh app.  I create an object of
> the tmp class to obvously use the methods from it in my app.  Now,
> what the methods do here is pull information from teh datbase and
> return it to my app (and I am probably doing more work than needed,
> but I am learning).  My first method pulls a number from teh DB and
> returns it as an int to my app, I get a null pointer exception.  I do
> check if the ResultSet was null and if it is return 0.  Any ideas?
> Thanks.

	Try posting some example code.  I can't make a lot of sense of
your question.  Java doesn't have templates, and C++ doesn't have null
pointer exceptions, it has segmentation faults.

Have fun (if at all possible),
-- 
Its name is Public Opinion.  It is held in reverence. It settles everything.
Some think it is the voice of God.  Loyalty to petrified opinion never yet
broke a chain or freed a human soul.     ---Mark Twain
-- Eric Hopper (hopper@omnifarious.mn.org  http://omnifarious.mn.org/~hopper) --

PGP signature