|
Here's a strange one for you (strange in that it
takes a rare set of circumstances to get this to happen).
Create a TableDataSet.
Set the columns to not include the primary key
data.
You get a null pointer exception in
Record.updateKeydefValues() when it clones the value in a keydef column (which
isn't there because you didn't select that column). I would just add a
check to see whether that value is null before cloning, but I'm not really sure
what the point of this code is. It seems that the DataSet object is
creating "blank" records (it calls newRecord) during the fetchRecords. I
don't really get this, and I'm afraid that it will have trouble if the cloned
record does not have primary key values.
Any suggestions? Like I said, I don't really
know what this code is for. In the meantime, I'm just going to use a
QueryDataSet. Here's a stack trace...
java.lang.NullPointerException
at com.workingdogs.town.Record.updateKeydefValues(Record.java:223) at com.workingdogs.town.Record.createValues(Record.java:203) at com.workingdogs.town.Record.<init>(Record.java:124) at com.workingdogs.town.Record.<init>(Record.java:109) at com.workingdogs.town.DataSet.newRecord(DataSet.java:1242) at com.workingdogs.town.DataSet.fetchRecords(DataSet.java:583) at com.workingdogs.town.DataSet.fetchRecords(DataSet.java:398) at com.workingdogs.town.DataSet.fetchRecords(DataSet.java:351) at com.workingdogs.town.DataSet.size(DataSet.java:945) at com.casinocasino.video.VideoClip.loadCache(VideoClip.java:72) at com.casinocasino.video.VideoClip.nextFrame(VideoClip.java:138) at com.casinocasino.video.VideoClip.run(VideoClip.java:245) at java.lang.Thread.run(Unknown Source) Serge Knystautas
Loki Technologies
|
