You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2015/05/19 08:40:02 UTC

[jira] [Commented] (DIRSTUDIO-1047) No BrowserViewUniversalListener.connectionOpened null checks

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-1047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14549912#comment-14549912 ] 

Stefan Seelmann commented on DIRSTUDIO-1047:
--------------------------------------------

Thanks Paul for the report. Can you provide a patch?

I assume there are more places where the BrowserConnection is fetched and may be null.

> No BrowserViewUniversalListener.connectionOpened null checks
> ------------------------------------------------------------
>
>                 Key: DIRSTUDIO-1047
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1047
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-ldapbrowser
>    Affects Versions: 2.0.0-M8 (2.0.0.v20130628)
>            Reporter: Paul Richardson
>
> BrowserViewUniversalListener.connectionOpened is fired on the opening of a connection. In my case, the connection being opened comes from a wizard displaying the BrowserWidget rather than the BrowserView. In this use-case, the BrowserConnection used in the wizard is only temporary so not added to the BrowserCorePlugin ConnectionManager.
> Consequently, opening a connection in the wizard while the BrowserView is also open, the latter's BrowserViewUniversalListener.connectionOpened() is fired and a NPE results.
> A check can be added to assert that the BrowserConnection fetched from the ConnectionManager is not null. Only if not null should the BrowserView viewer be refreshed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)