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

James E. King III resolved THRIFT-4368.
---------------------------------------
       Resolution: Fixed
         Assignee: James E. King III
    Fix Version/s: 1.0

> Guaranteed NPE in TBaseAsyncProcessor.java
> ------------------------------------------
>
>                 Key: THRIFT-4368
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4368
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.10.0
>            Reporter: Christian Ciach
>            Assignee: James E. King III
>            Priority: Major
>             Fix For: 1.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> While creating a pull request for another ticket, the null-analyzer of 
> Eclipse found a guaranteed NullPointerException in 
> {{org.apache.thrift.TBaseAsyncProcessor<I>}}.
> In the method {{process(AsyncFrameBuffer)}} we see this code fragment:
> {code:java}
>     AsyncProcessFunction fn = processMap.get(msg.name);
>         if (fn == null) {
>             TProtocolUtil.skip(in, TType.STRUCT);
>             in.readMessageEnd();
>             if (!fn.isOneway()) {
> {code}
> The variable {{fn}} can only be null in the last line.



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

Reply via email to