So I'm playing around with 2.1beta1 (mostly for the virtual service support, which I *love*) and I noticed a minor bug. If you issue a GetLegendGraphic request against a layer and the SLD has a rule with no <Title>, geoserver will throw a null pointer exception. The culprit seems to be this code in DefaultRasterLegendProducer.java:
//What's the label on this rule? We prefer to use //the 'title' if it's available, but fall-back to 'name' labels[i] = rule.getDescription().getTitle().toString(); if (labels[i] == null) labels[i] = rule.getName(); if (labels[i] == null) labels[i] = ""; As you can see if the title tag doesn't exist it will try to call the method on a null pointer and die. I noticed this because I generally don't put titles on my label rules; otherwise they generate useless empty legend entries, which I don't want. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users