Skip to content

Commit

Permalink
[JENKINS-30662] - Proper initialization of UserContextCache on jenkin…
Browse files Browse the repository at this point in the history
…s startup
  • Loading branch information
oleg-nenashev committed Sep 27, 2015
1 parent 3f17a45 commit 77c2370
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -66,15 +66,25 @@ public class SimpleSearchView extends ListView {
* @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;
Expand Down

0 comments on commit 77c2370

Please sign in to comment.