directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiajia Li (JIRA)" <>
Subject [jira] [Resolved] (DIRKRB-354) Fix getBooleanOption return null problem
Date Wed, 15 Jul 2015 02:23:04 GMT


Jiajia Li resolved DIRKRB-354.
    Resolution: Fixed

> Fix getBooleanOption return null problem
> ----------------------------------------
>                 Key: DIRKRB-354
>                 URL:
>             Project: Directory Kerberos
>          Issue Type: Bug
>            Reporter: Xu Yaning
>            Assignee: Xu Yaning
>         Attachments: DIRKRB-354-v1.patch, DIRKRB-354-v2.patch, DIRKRB-354-v3.patch
> org.apache.kerby.KOptions.getBooleanOption(KOption) has Boolean return type and returns
explicit null; A method that returns either Boolean.TRUE, Boolean.FALSE or null is an accident
waiting to happen. This method can be invoked as though it returned a value of type boolean,
and the compiler will insert automatic unboxing of the Boolean value. If a null value is returned,
this will result in a NullPointerException.

This message was sent by Atlassian JIRA

View raw message