Mercurial > dive4elements > river
changeset 8365:ebf74d92be38
dataset can be null.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 02 Oct 2014 10:13:31 +0200 |
parents | abef2584c9a7 |
children | 061e85212d25 |
files | artifacts/src/main/java/org/dive4elements/river/jfree/AnnotationHelper.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/jfree/AnnotationHelper.java Thu Oct 02 09:55:31 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/jfree/AnnotationHelper.java Thu Oct 02 10:13:31 2014 +0200 @@ -187,7 +187,7 @@ int axisIndex = annotation.getAxisSymbol(); XYItemRenderer renderer = null; - if (dataset.getDatasets().length > 0) { + if (dataset != null && dataset.getDatasets().length > 0) { renderer = plot.getRendererForDataset(dataset.getDatasets()[0]); } else {