From 83dca78ab6b101853bb5e10078de2d216f9da9df Mon Sep 17 00:00:00 2001 From: zheng Date: Fri, 30 Mar 2018 11:12:49 +0800 Subject: [PATCH] npe --- src/com/fr/plugin/demo/DemoChart.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/fr/plugin/demo/DemoChart.java b/src/com/fr/plugin/demo/DemoChart.java index f06a0ae..05c6818 100644 --- a/src/com/fr/plugin/demo/DemoChart.java +++ b/src/com/fr/plugin/demo/DemoChart.java @@ -56,7 +56,9 @@ public class DemoChart extends AbstractChart{ @Override public Object clone() throws CloneNotSupportedException { DemoChart result = (DemoChart) super.clone(); - result.setTitleFormula(this.getTitleFormula().clone()); + if (getTitleFormula() != null) { + result.setTitleFormula(this.getTitleFormula().clone()); + } return result; }