You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2017/11/28 17:27:00 UTC

[jira] [Commented] (BATCHEE-127) JobContext#isActive throws NPE when not active

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

Reinhard Sandtner commented on BATCHEE-127:
-------------------------------------------

fixed on master -> can you give it a try

thx for reporting

> JobContext#isActive throws NPE when not active
> ----------------------------------------------
>
>                 Key: BATCHEE-127
>                 URL: https://issues.apache.org/jira/browse/BATCHEE-127
>             Project: BatchEE
>          Issue Type: Bug
>          Components: batchee-extensions
>    Affects Versions: 0.5-incubating
>            Reporter: Cornelius Dirmeier
>            Assignee: Reinhard Sandtner
>             Fix For: 0.5-incubating
>
>
> When calling isActive() on JobContextImpl while the context is not active the method should return {{false}}.
> The implementation of isActive() is in BaseContext
> {code}
>     public boolean isActive() {
>         return currentKey() != null;
>     }
> {code}
> However the implementation of {{currentKey()}} in JobContextImpl does not return null but throws a NullPointerException when the context is not active yet.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)