batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BATCHEE-127) JobContext#isActive throws NPE when not active
Date Tue, 28 Nov 2017 17:49:00 GMT

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

Hudson commented on BATCHEE-127:
--------------------------------

SUCCESS: Integrated in Jenkins build batchee #645 (See [https://builds.apache.org/job/batchee/645/])
BATCHEE-127 fixed NPE if context not active (rsandtner: rev 92ca9f78a0b42ee347a3448395ffe42d2e3c9b42)
* (edit) extensions/cdi/src/main/java/org/apache/batchee/cdi/impl/JobContextImpl.java
* (edit) extensions/cdi/src/main/java/org/apache/batchee/cdi/impl/StepContextImpl.java


> 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)

Mime
View raw message