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

Brian de Alwis commented on DIRSTUDIO-1095:
-------------------------------------------

The bug is that CertificateListComposite#createButtons() has a local variable, 
viewButton, that shadows the field viewButton, and so the field viewButton is 
never assigned.

http://svn.apache.org/repos/asf/directory/studio/trunk/plugins/connection.ui/src/main/java/org/apache/directory/studio/connection/ui/widgets/CertificateListComposite.java

 private void createButtons( Composite container )
    {
        Composite buttonContainer = BaseWidgetUtils.createColumnContainer( 
container, 1, 1 );
        buttonContainer.setLayoutData( new GridData( GridData.FILL, 
GridData.FILL, false, false ) );

        // The View Button 
        Button viewButton = BaseWidgetUtils.createButton( buttonContainer, 
Messages
            .getString( "CertificateListComposite.ViewButton" ), 1 
);//$NON-NLS-1$
        
        viewButton.setEnabled( false );
        viewButton.addSelectionListener( viewButtonSelectionListener );

> Preferences : Connections : Certificates => java.lang.NullPointer
> -----------------------------------------------------------------
>
>                 Key: DIRSTUDIO-1095
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1095
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-ldapbrowser
>    Affects Versions: 2.0.0-M10 (2.0.0.v20151221-M10)
>         Environment: Linux/Fedora 23
>            Reporter: lejeczek
>            Assignee: Stefan Seelmann
>             Fix For: 2.0.0-M11
>
>
> originally reported here:
> https://bugzilla.redhat.com/show_bug.cgi?id=1310221



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

Reply via email to