jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-5293) Static code analysis and code cleanup
Date Wed, 14 Dec 2016 15:53:58 GMT

    [ https://issues.apache.org/jira/browse/OAK-5293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15748678#comment-15748678

Michael Dürig commented on OAK-5293:

At http://svn.apache.org/viewvc?rev=1774277&view=rev I fixed a potential {{null}} dereference
in {{MapRecord.compare(MapRecord, NodeStateDiff)}} by asserting the respective {{MapEntry}}
instances and their values are not {{null}},  which according to my reasoning is always the
case here. 
The tricky bit is {{beforeEntry.getValue()}}.  AFAICS this cannot be {{null}} as otherwise
we would have gone (and returned from) one of the {{isDiff()}} branches further up in the

> Static code analysis and code cleanup
> -------------------------------------
>                 Key: OAK-5293
>                 URL: https://issues.apache.org/jira/browse/OAK-5293
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: technical_debt
>             Fix For: 1.5.17
> We should run some static analysis (i.e. sonar, find bugs, etc.) on our code base and
fix the most sever issues. 

This message was sent by Atlassian JIRA

View raw message