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 @@
*******************************************************************************/
package org.eclipse.foundation.gerrit.validation;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
......@@ -263,9 +264,10 @@ public class EclipseCommitValidationListener implements CommitValidationListener
ProjectControl projectControl = projectControlFactory.controlFor(project.getNameKey(), user);
RefControl refControl = projectControl.controlForRef("refs/heads/*");
return refControl.canSubmit();
} catch (NoSuchProjectException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchProjectException nspe) {
nspe.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
}
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