ctf: Allow finalizing CTFTrace's if validation failed
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 4 May 2012 17:58:27 +0000 (13:58 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 4 May 2012 18:38:08 +0000 (14:38 -0400)
commitd0d3aa1ba53616c3eb5ab7ee2ead14f09e645e00
treea8d4aa7c908a0f1c877a09e6f4452fa0cc1b3183
parent3770bc6a24761f0e666219357b663047542aa350
ctf: Allow finalizing CTFTrace's if validation failed

A NPE could happen during finalize() if an exception was thrown
before the constructor could complete. Move the new-ification of
the FileChannel container to the beginning, and use a List instead
of a static array.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/trace/CTFTrace.java
This page took 0.028133 seconds and 5 git commands to generate.