Skip to content
Snippets Groups Projects
Commit f9b375ef authored by Frederic Gurr's avatar Frederic Gurr
Browse files

Add catch block for IOException


Signed-off-by: default avatarFrederic Gurr <frederic.gurr@eclipse.org>
parent d216aeb0
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
*******************************************************************************/ *******************************************************************************/
package org.eclipse.foundation.gerrit.validation; package org.eclipse.foundation.gerrit.validation;
import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -263,9 +264,10 @@ public class EclipseCommitValidationListener implements CommitValidationListener ...@@ -263,9 +264,10 @@ public class EclipseCommitValidationListener implements CommitValidationListener
ProjectControl projectControl = projectControlFactory.controlFor(project.getNameKey(), user); ProjectControl projectControl = projectControlFactory.controlFor(project.getNameKey(), user);
RefControl refControl = projectControl.controlForRef("refs/heads/*"); RefControl refControl = projectControl.controlForRef("refs/heads/*");
return refControl.canSubmit(); return refControl.canSubmit();
} catch (NoSuchProjectException e) { } catch (NoSuchProjectException nspe) {
// TODO Auto-generated catch block nspe.printStackTrace();
e.printStackTrace(); } catch (IOException ioe) {
ioe.printStackTrace();
} }
return false; return false;
} }
......
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