Dome center null check

com.jme.scene.shape.Dome.updateGeometry(Vector3f center, int planes, int radialSamples, float radius, boolean outsideView) gives this.center a default value in case center is null, but this default value is not set to local variable center itself thus causing NullpointerException

Write a patch, or post some code; if your right it will probably go in right away  :wink:



…And welcome to the forums.  :slight_smile:


> Write a patch

Attached

> And welcome to the forums

Thx

good catch, only this.center should have been used in updateGeometry()

Does anyone else see a link or patch? 

(cause I don't…)

> Does anyone else see a link or patch?



File name is Dome.java.diff.txt and should be seen on the bottom of my post. Others have downloaded it, so problem must be your board settings or browser.



Direct link:

http://www.jmonkeyengine.com/jmeforum/index.php?action=dlattach;topic=10196.0;attach=156

Sweet, global moderator status and I am locked out from downloading or viewing attachments

(clicking on your linked confirmed that)





(I guess that means I am moderated globally? :D)



too bad I cant change my own settings