File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
amp/WEB-INF/src/org/digijava
kernel/ampapi/endpoints/gpi Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public static void requireValid(Object obj) {
3232 }
3333
3434 public static void valuesValid (Collection possibleValues , Object value ) {
35+ if (possibleValues == null ) { throw new IllegalArgumentException ("possibleValues cannot be null" ); }
3536 for (Object possibleValue : possibleValues ) {
3637 if (possibleValue .equals (value )) {
3738 return ;
Original file line number Diff line number Diff line change @@ -1262,7 +1262,6 @@ public static Collection getAllSectorMappings() {
12621262 queryString = "select asm from " + AmpSectorMapping .class .getName () + " asm" ;
12631263 qry = session .createQuery (queryString );
12641264 col = qry .list ();
1265- session .flush ();
12661265 } catch (Exception ex ) {
12671266 logger .error ("Unable to get sectors mappings from database " + ex .getMessage ());
12681267 ex .printStackTrace (System .out );
You can’t perform that action at this time.
0 commit comments