Skip to content
Snippets Groups Projects
Commit 9c6ef9cd authored by kaloyane's avatar kaloyane
Browse files

minor: handle unchecked exceptions when opening inputstream

SVN: 21517
parent 386e8f41
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,11 @@ public class FtpFileImpl extends AbstractFtpFile ...@@ -82,7 +82,11 @@ public class FtpFileImpl extends AbstractFtpFile
} catch (IOException ioex) } catch (IOException ioex)
{ {
content.close(); content.close();
return null; throw ioex;
} catch (RuntimeException re)
{
content.close();
throw re;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment