Mercurial > dive4elements > river
changeset 4646:d70284c92728
Prevent NPE when color for bandwidth is unset, use non-template default.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 05 Dec 2012 13:34:47 +0100 |
parents | 105463e2234f |
children | 1fea4243721c |
files | flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledAreaSeriesCollection.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledAreaSeriesCollection.java Wed Dec 05 12:59:32 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/StyledAreaSeriesCollection.java Wed Dec 05 13:34:47 2012 +0100 @@ -87,7 +87,7 @@ ThemeUtil.getBackgroundColorString(theme)); int transparency = ThemeUtil.parseTransparency(theme); - if (transparency > 0) { + if (transparency > 0 && paint != null) { paint = new Color( paint.getRed(), paint.getGreen(),