Mercurial > hg > Database > Alice
diff src/alice/datasegment/LocalDataSegmentManager.java @ 16:433e601a8e28
network bug fix
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Jan 2012 12:17:30 +0900 |
parents | e3f1b21718b0 |
children | 72dd27d952b0 |
line wrap: on
line diff
--- a/src/alice/datasegment/LocalDataSegmentManager.java Sun Jan 15 01:19:54 2012 +0900 +++ b/src/alice/datasegment/LocalDataSegmentManager.java Sun Jan 15 12:17:30 2012 +0900 @@ -12,6 +12,9 @@ } public DataSegmentKey getDataSegmentKey(String key) { + if (key == null) { + return null; + } DataSegmentKey newDataSegmentKey = new DataSegmentKey(); DataSegmentKey dataSegmentKey = dataSegments.putIfAbsent(key, newDataSegmentKey); if (dataSegmentKey == null) {