Skip to content
Permalink
Browse files
[JENKINS-30662] - Proper initialization of UserContextCache on jenkin…
…s startup
  • Loading branch information
oleg-nenashev committed Sep 27, 2015
1 parent 3f17a45 commit 77c23700efc4e3f55954ca979ca2c0466b601558
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/main/java/com/synopsys/arc/jenkinsci/plugins/dynamic_search/views/SimpleSearchView.java
@@ -66,15 +66,25 @@
* @since 0.2.1
*/
public static final VersionNumber MINIMAL_AUTOREFRESH_VERSION = new VersionNumber("1.557");
transient final UserContextCache contextMap = new UserContextCache();

@Nonnull
transient UserContextCache contextMap;

private String defaultIncludeRegex;
private DescribableList<ViewJobFilter, Descriptor<ViewJobFilter>> defaultJobFilters;

@DataBoundConstructor
public SimpleSearchView(String name) {
super(name);
this.contextMap = new UserContextCache();
}

protected Object readResolve() {
if (contextMap == null) {
contextMap = new UserContextCache();
}
return this;
}

public String getDefaultIncludeRegex() {
return defaultIncludeRegex;

0 comments on commit 77c2370

Please sign in to comment.