Bug 15840 - MessageTag causes NullPointer Exception
Summary: MessageTag causes NullPointer Exception
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: I18N Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P1 blocker (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL: http://.../i18n-examples/bundle_stand...
Keywords:
: 15989 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-07 15:20 UTC by Frank Dutenh
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)



Attachments
This is the fixed MessageTag source code (9.84 KB, patch)
2003-01-08 15:01 UTC, Frank Dutenh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Dutenh 2003-01-07 15:20:47 UTC
MessageTag.java uses _bundle (line 268), that causes an NullPointer Exception.
Even the standard example (i18n-examples/bundle_standard.jsp) is not working well.

SOLUTION:
user this.getBundle() instead and the NullPointer bug is solved, please include
in next nightly build, thanks.
Comment 1 Frank Dutenh 2003-01-08 15:01:36 UTC
Created attachment 4372 [details]
This is the fixed MessageTag source code
Comment 2 Frank Dutenh 2003-01-08 15:06:36 UTC
I used the nightly build from 7. January 2003
(jakarta-taglibs-i18n-20030107.zip), and fixed it (see attached MessageTag.java)
Comment 3 Glenn Nielsen 2003-01-11 14:40:27 UTC
Thanks for the bug report, the bug fix should be in the next nightly build.
Comment 4 Glenn Nielsen 2003-01-11 14:44:41 UTC
*** Bug 15989 has been marked as a duplicate of this bug. ***