summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_sch/AccTitle.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sch/AccTitle.java')
-rw-r--r--qadevOOo/tests/java/mod/_sch/AccTitle.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sch/AccTitle.java b/qadevOOo/tests/java/mod/_sch/AccTitle.java
index 4fa56ee8f4f1..0639f19ca4cc 100644
--- a/qadevOOo/tests/java/mod/_sch/AccTitle.java
+++ b/qadevOOo/tests/java/mod/_sch/AccTitle.java
@@ -109,9 +109,11 @@ public class AccTitle extends TestCase {
* @param log writer to log information while testing
*/
protected void cleanup( TestParameters Param, PrintWriter log) {
- log.println( " closing xChartDoc " );
- util.DesktopTools.closeDoc(xChartDoc);
-
+ if( xChartDoc!=null ) {
+ log.println( " closing xChartDoc" );
+ util.DesktopTools.closeDoc(xChartDoc);
+ xChartDoc = null;
+ }
}
}