Re: Null pointer exception with Java 1.4.2, ok with 1.5
From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 11/27/04
- Next message: da Vinci: "List ADT Question: Code Included"
- Previous message: Andrew Thompson: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- In reply to: Luke: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- Next in thread: Nigel Wade: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- Reply: Nigel Wade: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 27 Nov 2004 18:00:50 GMT
On Sat, 27 Nov 2004 17:49:34 GMT, Luke wrote:
> On Sat, 27 Nov 2004 17:37:46 GMT, Luke <lukeita@gawab.com> wrote:
> Ok added just a check:
>
> if (image != null)
> // paint image...
Yep. That's what I was thinking. Ignore my other post.
> and it works :-)
> Why in Java 1.5 I had no problems?
I'd say it comes down to a matter of timing. The 1.4 code
gets to the first 'paintComponent' before the image is loaded,
whereas 1.5 loads the image first.
> thanks Andrew!
No worries. ;-)
-- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane
- Next message: da Vinci: "List ADT Question: Code Included"
- Previous message: Andrew Thompson: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- In reply to: Luke: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- Next in thread: Nigel Wade: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- Reply: Nigel Wade: "Re: Null pointer exception with Java 1.4.2, ok with 1.5"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|