Article View: borland.public.jbuilder.java.language
Article #17227Re: Throws
From: Steve Schafer (TeamB)
Date: Fri, 04 Dec 1998 00:00
Date: Fri, 04 Dec 1998 00:00
13 lines
1043 bytes
1043 bytes
On Thu, 03 Dec 1998 16:55:24 -0800, Shahid Juma <shahidj@interlog.com> wrote: >java.lang.NullPointerException > at LinkedStack.pop(Compiled Code) > at LinkedStack.pop(Compiled Code) > at Assignment4.interactiveTest(Compiled Code) > at Assignment4.main(Assignment4.java:31) Well, the NullPointerException is arising because top is null; it has nothing to do with your throws clause or the throw statement. -Steve
Technical Details
Message-ID:
<373f7bc3.858189702@90.0.0.40>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3666FA68.1AE15DBC@interlog.com> <3732fbbd.825410610@90.0.0.40> <366732FB.D0235A7F@interlog.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,32517523289d282 X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: Throws Date: 1998/12/04 Message-ID: <373f7bc3.858189702@90.0.0.40> X-Deja-AN: 418515332 Content-Transfer-Encoding: 7bit References: <3666FA68.1AE15DBC@interlog.com> <3732fbbd.825410610@90.0.0.40> <366732FB.D0235A7F@interlog.com> Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.jbuilder.java.language