Serializing TerrainBlock

In latest CVS there seems to be a problem with serializing. I get no exception in writeObject, but in readObject there is:

18.12.2005 02:20:25 de.worldofmystery.client.SlidingTerrainPage$IndexedTerrainBlock read
WARNUNG: read data/terrain.22.18.oos
        at com.jme.scene.Geometry.readObject(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at Source)
        at de.worldofmystery.client.SlidingTerrainPage$
        at de.worldofmystery.client.SlidingTerrainPage.load(
        at de.worldofmystery.client.SlidingTerrainPage.checkTile(
        at de.worldofmystery.client.SlidingTerrainPage.checkTiles(
        at de.worldofmystery.client.SlidingTerrainPage.update(
        at de.worldofmystery.client.Client.update(
        at de.worldofmystery.client.Client.main(

Testprogram to demonstrate the problem:

The NullPointerException occurs in com.jme.scene.Geometry.readObject() at texBuf.clear() in this context:

private void readObject( s) throws IOException,

Now I get a EOFException:

Ah, looks like that is due to an improper reuse of the len variable in that method.  please try once more.

It's fixed. I'm happy :wink:

Awesome, sorry for the trouble.