diff options
author | Steve <steveb9@u.washington.edu> | 2011-03-06 11:06:48 +0000 |
---|---|---|
committer | Steve <steveb9@u.washington.edu> | 2011-03-06 11:06:48 +0000 |
commit | 8713db044a45f768b00beb73611143110fe426b3 (patch) | |
tree | 13392a17f6dfe90c31b86b45eac300b8d7e5d45f /src/common | |
parent | 63aa793e17cca81061dd9f4540e58f741771a65f (diff) |
Added size check of peers to fix Exception when no network
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/Peer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Peer.java b/src/common/Peer.java index 14ca0b8..2ba0d83 100644 --- a/src/common/Peer.java +++ b/src/common/Peer.java @@ -23,8 +23,8 @@ public class Peer extends Observable { */
public static final int DEFAULT_SERVER_PORT = 5507;
- private PeerInformation myInfo;
- private ArrayList<PeerInformation> peers;
+ private PeerInformation myInfo = new PeerInformation();
+ private ArrayList<PeerInformation> peers = new ArrayList<PeerInformation>();
private ServerSocket serverSocket;
private SwingWorker<Object,Object> worker;
|