You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2015/10/12 04:25:05 UTC

[jira] [Commented] (DELTASPIKE-1002) NPE when job startScopes is set to empty

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

John D. Ament commented on DELTASPIKE-1002:
-------------------------------------------

Do you have a stacktrace or something?
There's a while loop that is checking to make sure there are entries in the underlying stack.  If the stack's empty, nothing shall be executed.

> NPE when job startScopes is set to empty
> ----------------------------------------
>
>                 Key: DELTASPIKE-1002
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1002
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Scheduler
>    Affects Versions: 1.4.1
>            Reporter: Patrick Huang
>            Priority: Minor
>
> When setting a job to start empty scope, it will trigger a NPE when trying to destroy contextControl.
> In org.apache.deltaspike.scheduler.impl.QuartzScheduler.JobListenerContext it doesn't seem to initialize contextControl when start scope is emtpy. Therefore when invoking stopStartedScopes(), it will cause a NPE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)