🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9238

Re: Problems with DefaultTableModel in java versions?

#9238
From: Hilde Lehmann
Date: Tue, 02 May 2000 00:00
39 lines
2060 bytes
Hi
I got it, there was a bug on my class, getRowCount() returned a null value,
because  I used a vector which was not initialized until I called a setup
function, so when I made an instance of my class, my vector.size() returned
a null value. The only strange thing ist that with jdk 1.2. the bug didn�t
appeared but in jdk 1.2.2 it did.
Thanks anyway
Hilde
p.d. there is always something to learn

"John P. McGrath" wrote:

> On Mon, 01 May 2000 11:24:47 -0500, Hilde Lehmann wrote:
>
> > My application has a JTable with a Model that extends
> > from DefaultTableModel. If I run inside JBuilder 3
> > (which has jdk 1.2) works fine. If I run it outside
> > JBuilder with jdk 1.2.1 it also works fine, but if I
> > run it with jdk 1.2.2, it crashes with the following
> > error:  Does anybody knows if there is a change in the
> > new version?
> >
> >
> > Exception occurred during event dispatching:
> > java.lang.NullPointerException
> >  at GbsBook.OutLineModel.getRowCount(OutLineModel.java:19)
> >  at javax.swing.JTable.getRowCount(Unknown Source)
>
> There are no changes that I am aware of that would cause a
> NullPointerException.
>
> As the stack trace shows, it occurs in the class "GbsBook.OutLineModel",
> which I presume is one of your classes.  Did you look to see what is at
> line 19 in OutLineModel.java?
>
> --
> John P. McGrath
> <JPMcGrath@fast.net>
> <jpm@nscs.fast.net>
Technical Details
Message-ID: <390EE0CC.1947DA63@intercable.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <390DAFCF.D562C6F2@intercable.net> <MPG.1378305a762ca0079898c2@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,938fa266a0ea912c
X-Google-Attributes: gid111d45,public
From: Hilde Lehmann <mole@intercable.net>
Subject: Re: Problems with DefaultTableModel in java versions?
Date: 2000/05/02
Message-ID: <390EE0CC.1947DA63@intercable.net>
X-Deja-AN: 618267874
Content-Transfer-Encoding: 8bit
References: <390DAFCF.D562C6F2@intercable.net> <MPG.1378305a762ca0079898c2@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Trace: 2 May 2000 06:55:33 -0800, 127.0.0.1
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing