Material toString NullPointerException

I get that strange error… I create the simplest of the materials:

Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");

and then printing it out results in an NPE because the toString() method wants to put the technique (being the “active technique” by implication) name in the string, but there’s nothing there, no active technique… it’s null… and here we go…

That’s the new thing in JME 3.1.0-beta1… is this intended? I highly doubt that this is okay this way.

It’s been fixed later on, current 3.1 branch and 3.2 don’t have this issue.

That is very good to hear! Although the problem is… tolerable to a point, still, I would like to have it sorted. Don’t you know, when the newer artifacts will be available on a maven repo?

Body is too similar to what you recently posted (I have accidently made a mistake with my last post, I am sorry).