Context.getProcessEngineConfiguration() null??
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2016 10:54 PM
Hello, I'd like to ask something about this. Whenever I try to invoke Context.getProcessEngineConfiguration(), I always get a NullPointerException. Like so:
ProcessEngineConfiguration processEngineConfiguration = Context.getProcessEngineConfiguration();
How do I make sure that it won't give a null? Thanks.
ProcessEngineConfiguration processEngineConfiguration = Context.getProcessEngineConfiguration();
How do I make sure that it won't give a null? Thanks.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2016 03:32 AM
Hi Chris,
Regards
Martin
Context.getProcessEngineConfiguration()
does not return null when the method is executed inside the context of some command. Put break point into org.activiti.engine.impl.context.Context#setProcessEngineConfiguration
and run some process to see more.Regards
Martin
