Mercurial > hg > Papers > 2013 > sugi-thesis
diff Draft/source/NullPointerException.java @ 6:52dff3fd4f40
add Draft
author | sugi |
---|---|
date | Mon, 18 Feb 2013 02:48:08 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Draft/source/NullPointerException.java Mon Feb 18 02:48:08 2013 +0900 @@ -0,0 +1,15 @@ +public class NullPointer extends CodeSegment { + private Receiver data1 = ids.create(CommandType.PEEK); + private Object obj; + + public NullPointer(Object _obj){ + data1.setKey("FISH0"); + obj = _obj; + } + + @Override + public void run() { + FishData fd1 = data1.asClass(FishData.class); + obj.setXYZ( fd1.getXYZ() ); + } +}