Skip to main content

[JAVAHELP] getSize() bug and release 2.0.1

1 reply [Last post]
Anonymous

Is this the getSize() bug (4924174) fixed in release 2.0.1?

java.lang.NullPointerException
at
javax.help.WindowPresentation.getSize(WindowPresentation.java:507)
at
javax.help.WindowPresentation.createHelpWindow(WindowPresentation.java:686)
at
javax.help.WindowPresentation.setDisplayed(WindowPresentation.java:328)
at
javax.help.DefaultHelpBroker.setDisplayed(DefaultHelpBroker.java:178)
at javax.help.CSH.displayHelp(CSH.java:749)
at javax.help.CSH.access$200(CSH.java:80)
at
javax.help.CSH$DisplayHelpAfterTracking.actionPerformed(CSH.java:1475)

I have a help button in a modal window and context-sensitive help in the
owning frame. I get this exception when I alternate between the two. Is
release 2.0.1 available yet? If not, when is it expected out?

If I am not going to have the bug fix soon, I think I can work around the
problem by destroying the WindowPresentation (if there is one) when the
dialog is invoked and again when it is closed. Any comments on this approach
or other suggestions?

Thanks,
Jo Taylor

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Taylor, Jo wrote:
> Is this the getSize() bug (4924174) fixed in release 2.0.1?

Yes, that's what the bug report says.

> java.lang.NullPointerException
> at
> javax.help.WindowPresentation.getSize(WindowPresentation.java:507)
> at
> javax.help.WindowPresentation.createHelpWindow(WindowPresentation.java:686)
> at
> javax.help.WindowPresentation.setDisplayed(WindowPresentation.java:328)
> at
> javax.help.DefaultHelpBroker.setDisplayed(DefaultHelpBroker.java:178)
> at javax.help.CSH.displayHelp(CSH.java:749)
> at javax.help.CSH.access$200(CSH.java:80)
> at
> javax.help.CSH$DisplayHelpAfterTracking.actionPerformed(CSH.java:1475)
>
> I have a help button in a modal window and context-sensitive help in the
> owning frame. I get this exception when I alternate between the two. Is
> release 2.0.1 available yet? If not, when is it expected out?

Not yet, next week and it will be called 2.0_01 not 2.0.1. We did a name
change recently.

> If I am not going to have the bug fix soon, I think I can work around
> the problem by destroying the WindowPresentation (if there is one) when
> the dialog is invoked and again when it is closed. Any comments on this
> approach or other suggestions?

I wouldn't bother with it coming out next week.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.