Issue#38 moved declaration gzipoutputStream inside try statement
This commit is contained in:
parent
576265568b
commit
ccc9dcf763
@ -86,9 +86,6 @@ public class SibaGUI
|
|||||||
// Set default GUI catch.
|
// Set default GUI catch.
|
||||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler()
|
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler()
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Override
|
@Override
|
||||||
public void uncaughtException(final Thread thread, final Throwable exception)
|
public void uncaughtException(final Thread thread, final Throwable exception)
|
||||||
{
|
{
|
||||||
|
@ -75,10 +75,9 @@ public class SibaManager
|
|||||||
File result;
|
File result;
|
||||||
|
|
||||||
TarArchiveOutputStream out = null;
|
TarArchiveOutputStream out = null;
|
||||||
OutputStream gzipOutputStream = null;
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
OutputStream gzipOutputStream = null;
|
||||||
if ((fileToSave == null) || !fileToSave.exists())
|
if ((fileToSave == null) || !fileToSave.exists())
|
||||||
{
|
{
|
||||||
throw new SibaException(BUNDLE.getString("sourceNotExist.text"));
|
throw new SibaException(BUNDLE.getString("sourceNotExist.text"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user