Skip to content

Commit f94d4d6

Browse files
committed
fix: avoid to fail for online check when a server is not available with distributed module
1 parent 9602d5d commit f94d4d6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

distributed/src/main/java/com/orientechnologies/orient/distributed/db/OrientDBDistributed.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ public ODistributedPlugin getPlugin() {
139139
}
140140

141141
private boolean isDistributedPluginEnabled() {
142-
return server.isDistributedPluginEnabled();
142+
if (server != null) {
143+
return server.isDistributedPluginEnabled();
144+
} else {
145+
return false;
146+
}
143147
}
144148

145149
protected OSharedContext createSharedContext(OAbstractPaginatedStorage storage) {

0 commit comments

Comments
 (0)