Skip to main content

A Bug in JXFindBar?

7 replies [Last post]
rafael_rio
Offline
Joined: 2006-08-23
Points: 0

Hy, everybody!

I suspect there's a bug in JXFindBar.

When I call new JXFindBar(aSearchable) or findBar.setSearchable(aJXList.getSearchable()), a NullPointerException is generated.

A workaround to this problem (I guess this is a problem) is to call findBar.addNotify() before call setSearchable.

Is that really a bug?
Thanks!

Reply viewing options

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

jdnc-interest@javadesktop.org schrieb:
> Hy, everybody!
>
> I suspect there's a bug in JXFindBar.
>
> When I call [i]new JXFindBar(aSearchable)[/i] or [i]findBar.setSearchable(aJXList.getSearchable())[/i], a NullPointerException is generated.
>
> A workaround to this problem (I guess this is a problem) is to call findBar.addNotify() before call setSearchable.
>
> Is that really a bug?

yeah. We had been discussing this a while ago, though I'm not sure we
came up with a workaround and/or filing an issue. You might try to
search the forum and/or swingx issue tracker.

Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

rafael_rio
Offline
Joined: 2006-08-23
Points: 0

Ok.
Thanks, Jeanette!

Just for the record:
> A workaround to this problem is to call findBar.addNotify() before call setSearchable.

kleopatra
Offline
Joined: 2003-06-11
Points: 0

>
> Just for the record:
> > A workaround to this problem is to call
> findBar.addNotify() before call setSearchable.

oh deeaar ... I really did overlook that line - must have been blinded by Highlighters

Thanks for pointing it out again! Would you please file an issue in swingx issuetracker or add that fix if there is already one?

Jeanette

gregburrow
Offline
Joined: 2006-07-10
Points: 0

I searched the issue database and did not find this problem. Has a bug been submitted? Is this issue resolved in the latest build?

Thanks,

Greg

Kleopatra

Greg,

> I searched the issue database and did not find this problem.

hmmm ... query the swingx issue tracker for all issues in subcomponent
"Search" lists (beside others)

https://swingx.dev.java.net/issues/show_bug.cgi?id=487

> Is this issue resolved in the latest build?
>

no.

Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net

kleopatra
Offline
Joined: 2003-06-11
Points: 0

>
>
> > Is this issue resolved in the latest build?
> >
>
> no.
>

now it is, incomplete: guarded against null in the offending method. But beware, it's a quick hack ...

Jeanette

gregburrow
Offline
Joined: 2006-07-10
Points: 0

Thank you very much for your effort.

Greg