Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -723,14 +723,14 @@ protected boolean isSessionStateMatch() {
}

/**
* Check if session state is enabled and session fail condition is met
* Check if session state is enabled with a session fail condition defined, and the fail condition is met
*
* @return true if session state is enabled and session fail condition is met
* @return true if session state is enabled with a session fail condition defined, and the fail condition is met
* otherwise return false
*/
protected boolean isSessionStateFailed() {
return jobKeys.isSessionStateEnabled() && extractorKeys.getSessionKeyValue()
.matches(jobKeys.getSessionStateFailCondition());
return jobKeys.isSessionStateEnabled() && StringUtils.isNotBlank(jobKeys.getSessionStateFailCondition())
&& extractorKeys.getSessionKeyValue().matches(jobKeys.getSessionStateFailCondition());
}

/**
Expand Down