Fix unavailability of Wikibase login
@@ -192,6 +192,10 @@ public class LoginCommand extends Command {
return;
}
+ if (manager == null) {
+ manager = ConnectionManager.getInstance();
+ }
+
Map<String, Object> jsonResponse = new HashMap<>();
if (manager.isLoggedIn(mediawikiApiEndpoint)) {
jsonResponse.put("logged_in", manager.isLoggedIn(mediawikiApiEndpoint));
