tmf.ui: Gracefully handle invalid tar import operations
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 15 Dec 2016 15:46:31 +0000 (10:46 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 15 Dec 2016 18:20:38 +0000 (13:20 -0500)
commit6facaeb6ec0e729c457abb780fbc05995c0061cd
treec67aafacef54432f3bebc7e0bfd869d7a82664a7
parent2e8c6c45ef45a0db9e6b263af24624df6e5f4640
tmf.ui: Gracefully handle invalid tar import operations

A tar.gz file may have an invalid tar file in the gzip. The
getNextEntry would return null in such a case. This performs
that null check in order to validate the tar and avoid a user-
facing NPE.

Change-Id: I28ae7c787d77a0f1c9136264cfc678d7e52cda1a
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/87247
Reviewed-by: Hudson CI
Reviewed-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-André Laperle <marc-andre.laperle@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/importtrace/TarFile.java
This page took 0.025046 seconds and 5 git commands to generate.