systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bd2019us (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SYSTEMML-2528) Change String.equals to Objects.equals(String,String) to avoid NullPointerException
Date Sat, 13 Apr 2019 14:26:00 GMT

     [ https://issues.apache.org/jira/browse/SYSTEMML-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

bd2019us updated SYSTEMML-2528:
-------------------------------
    Attachment: 1.patch

> Change String.equals to Objects.equals(String,String) to avoid NullPointerException
> -----------------------------------------------------------------------------------
>
>                 Key: SYSTEMML-2528
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-2528
>             Project: SystemML
>          Issue Type: Bug
>            Reporter: bd2019us
>            Priority: Major
>         Attachments: 1.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Hello,
> I found that the String "execType" and "opcode" in the two files may have potential risk
of 
> NullPointerException since they are immediately used after initialization. One recommended
API is Objects.equals(String,String) which can avoid this exception.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message