Skip to content

Commit

Permalink
Error in EM while upgrading on farm the application, leading to unapp…
Browse files Browse the repository at this point in the history
…lied migration #170 (#171)
  • Loading branch information
oanalavinia committed Oct 16, 2020
1 parent 81cb3e7 commit 23e3f56
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -77,7 +77,8 @@ public void onEvent(Event event, Object source, Object data)

private Collection<String> getTargetWikis(ExtensionEvent event)
{
if (event.hasNamespace() && event.getNamespace().startsWith("wiki:")) {
// Checking also for null namespace since it could mean that the upgrade is done on farm level.
if (event.hasNamespace() && event.getNamespace() != null && event.getNamespace().startsWith("wiki:")) {
return Collections.singleton(event.getNamespace().substring(5));
} else {
try {
Expand Down

0 comments on commit 23e3f56

Please sign in to comment.