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

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



I fixed it. Thanks anyway.

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.
>
> Erick
>
> --
>
> 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
>
> ---------------------------------------------------------------------
> 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