tmf: Bug 495219: Fix NPE in checkpoint indexer seeking on disposed trace
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / internal / tmf / core / trace / indexer / BTree.java
index 32ae555876955af9c290330f747f258d866f5b6e..e3a1ad1abcb77cb0400ffb5a3388ed654310dd29 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2013, 2014 Ericsson
+ * Copyright (c) 2013, 2016 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -290,7 +290,7 @@ public class BTree extends AbstractFileCheckpointCollection {
 
     private void accept(long nodeOffset, IBTreeVisitor visitor) {
 
-        if (nodeOffset == BTreeNode.NULL_CHILD) {
+        if (nodeOffset == BTreeNode.NULL_CHILD || getRandomAccessFile() == null) {
             return;
         }
 
This page took 0.025038 seconds and 5 git commands to generate.