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

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



Well, let me see, C++? I put java on the subject list, and I said "kind of a
template". Hmmm, sorry for the confusion. I guess I thought a template was
something you modeled after. I guess I am wrong. What is a template?

"Eric M. Hopper" wrote:

> 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) --
>
>   ------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature
>
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-devel-unsubscribe@mn-linux.org
> For additional commands, e-mail: tclug-devel-help@mn-linux.org

--

Erick Stohr - PageLab Network, Inc.
mailto:erick@pagelab.net  http://pagelab.net

Your search-to-sale global e-commerce solution!

Toll free 1-800-447-0607
Voice 612-362-9224
Fax 612-362-9227
43 Main Street SE, Suite 228
Minneapolis, Minnesota 55414