/*******************************************************************************
- * 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
private void accept(long nodeOffset, IBTreeVisitor visitor) {
- if (nodeOffset == BTreeNode.NULL_CHILD) {
+ if (nodeOffset == BTreeNode.NULL_CHILD || getRandomAccessFile() == null) {
return;
}
/*******************************************************************************
- * 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
ITmfCheckpoint checkpoint = null;
try {
long pos = getHeader().getSize() + fCheckpointSize * rank;
+ if (getRandomAccessFile() == null) {
+ return null;
+ }
getRandomAccessFile().seek(pos);
fByteBuffer.clear();
getRandomAccessFile().read(fByteBuffer.array());
/*******************************************************************************
- * Copyright (c) 2012, 2014 Ericsson
+ * Copyright (c) 2012, 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
}
ITmfCheckpoint checkpoint = fTraceIndex.get(index);
TmfCoreTracer.traceIndexer("Restored checkpoint: " + checkpoint); //$NON-NLS-1$
+ if (checkpoint == null) {
+ return fTrace.seekEvent((ITmfLocation) null);
+ }
location = checkpoint.getLocation();
}
}