From 908a6525030169c0cdd3f38c9c44a92301b14e3b Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Fri, 10 May 2019 19:50:08 +0400 Subject: [PATCH] Fixed null when creating GunSuperPeer (storage is null in dispatcher) --- build.gradle | 2 +- src/main/java/io/github/chronosx88/JGUN/nodes/GunSuperPeer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 9acdbd9..ee545ca 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'io.github.chronosx88' -version '0.2.5' +version '0.2.6' sourceCompatibility = 1.8 diff --git a/src/main/java/io/github/chronosx88/JGUN/nodes/GunSuperPeer.java b/src/main/java/io/github/chronosx88/JGUN/nodes/GunSuperPeer.java index 75c70bc..653b4f6 100644 --- a/src/main/java/io/github/chronosx88/JGUN/nodes/GunSuperPeer.java +++ b/src/main/java/io/github/chronosx88/JGUN/nodes/GunSuperPeer.java @@ -18,7 +18,7 @@ public class GunSuperPeer extends WebSocketServer implements Peer { public GunSuperPeer(int port, StorageBackend storageBackend) { super(new InetSocketAddress(port)); setReuseAddr(true); - dispatcher = new Dispatcher(graph, this, dup); + dispatcher = new Dispatcher(storageBackend, this, dup); this.graph = storageBackend; }