Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
2fe73a62
Commit
2fe73a62
authored
7 months ago
by
Thomas Mortagne
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-22365: Possible nullpointerexception when getting the extension index status
parent
abb49691
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-index/src/main/java/org/xwiki/extension/index/internal/job/ExtensionIndexJobScheduler.java
+6
-1
6 additions, 1 deletion
...ension/index/internal/job/ExtensionIndexJobScheduler.java
with
6 additions
and
1 deletion
xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-index/src/main/java/org/xwiki/extension/index/internal/job/ExtensionIndexJobScheduler.java
+
6
−
1
View file @
2fe73a62
...
...
@@ -165,7 +165,7 @@ public ExtensionIndexStatus getStatus(Namespace namespace)
ExtensionIndexStatus
scheduledStatus
=
!
id
.
equals
(
this
.
scheduledRequest
.
getId
())
?
(
ExtensionIndexStatus
)
this
.
jobStore
.
getJobStatus
(
this
.
scheduledRequest
.
getId
())
:
null
;
if
(
namespaceStatus
!=
null
if
(
hasAStartDate
(
namespaceStatus
)
&&
(
scheduledStatus
==
null
||
namespaceStatus
.
getStartDate
().
after
(
scheduledStatus
.
getStartDate
())
||
!((
ExtensionIndexRequest
)
scheduledStatus
.
getRequest
()).
getNamespaces
().
contains
(
namespace
)))
{
return
namespaceStatus
;
...
...
@@ -174,6 +174,11 @@ public ExtensionIndexStatus getStatus(Namespace namespace)
return
scheduledStatus
;
}
private
boolean
hasAStartDate
(
ExtensionIndexStatus
status
)
{
return
status
!=
null
&&
status
.
getStartDate
()
!=
null
;
}
/**
* @param namespace the new namespace to analyze
*/
...
...
This diff is collapsed.
Click to expand it.
Git Mirror User
@gitmirror
mentioned in commit
f8a06e66
·
7 months ago
mentioned in commit
f8a06e66
mentioned in commit f8a06e66e56b080c644346665ec0ff2957474dd9
Toggle commit list
Git Mirror User
@gitmirror
mentioned in commit
7ed6ab8b
·
7 months ago
mentioned in commit
7ed6ab8b
mentioned in commit 7ed6ab8b9f7a6474cfd937c5b3ae2bf74b23edef
Toggle commit list
Git Mirror User
@gitmirror
mentioned in commit
b69628fe
·
7 months ago
mentioned in commit
b69628fe
mentioned in commit b69628fe23511900ac36fdcd74d70b2cc92a4dd6
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment