Issue #2287 Fix null pointer in GFEColorBarResource

Change-Id: I477a7d5cc58e61b9d521337a94801114cecde62a

Former-commit-id: 8f8e041802 [formerly 4e768e812d [formerly add48ba3bbf77e6e7cbfa756e6da75c78aab6f0f]]
Former-commit-id: 4e768e812d
Former-commit-id: 59c8dc4fae
This commit is contained in:
Ron Anderson 2013-08-29 16:53:55 -05:00
parent 1c7890b692
commit 48e53df2c2

View file

@ -707,6 +707,10 @@ public class GFEColorbarResource extends
* continuous colorbar range.
*/
protected void checkFitToData() {
if (currentParm == null) {
return;
}
String parmName = currentParm.getParmID().getParmName();
String fitToDataPref = parmName + "_fitToDataColorTable";
if (GFEPreference.contains(fitToDataPref)) {