summaryrefslogtreecommitdiff
path: root/same
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-06 14:19:50 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-06 14:19:50 +0100
commit34366d7ae525d28ef153ad6059779d9cef3952c6 (patch)
treecb0c8901c5127313da282b261c41c192cd7ba280 /same
parent39c5171412ceb6b6719344b4e9db0347062d3b84 (diff)
Fix NullPointerException.
– Set missing field in Master constructor.
Diffstat (limited to 'same')
-rw-r--r--same/src/main/java/com/orbekk/same/MasterServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/same/src/main/java/com/orbekk/same/MasterServiceImpl.java b/same/src/main/java/com/orbekk/same/MasterServiceImpl.java
index 32a8781..c0df078 100644
--- a/same/src/main/java/com/orbekk/same/MasterServiceImpl.java
+++ b/same/src/main/java/com/orbekk/same/MasterServiceImpl.java
@@ -28,6 +28,7 @@ public class MasterServiceImpl implements MasterService, Runnable {
*/
private MasterServiceImpl(State initialState, ConnectionManager connections,
Broadcaster broadcaster) {
+ this.state = initialState;
this.connections = connections;
this.broadcaster = broadcaster;
}