diff --git a/plugins/genevagui/src/com/ibm/safr/we/internal/data/pgdao/PGLookupDAO.java b/plugins/genevagui/src/com/ibm/safr/we/internal/data/pgdao/PGLookupDAO.java index 0bdbce2..810f9ed 100644 --- a/plugins/genevagui/src/com/ibm/safr/we/internal/data/pgdao/PGLookupDAO.java +++ b/plugins/genevagui/src/com/ibm/safr/we/internal/data/pgdao/PGLookupDAO.java @@ -704,7 +704,10 @@ public List getLookupPathViewDependencies( List dependentViews = new ArrayList(); try { - String placeholders = generator.getPlaceholders(exceptionList.size()); + String placeholders = ""; + if(exceptionList != null) { + placeholders = generator.getPlaceholders(exceptionList.size()); + } String schema = params.getSchema(); // CQ 8056. Nikita. 16/07/2010. Show location in dependency error @@ -715,7 +718,7 @@ public List getLookupPathViewDependencies( + schema + ".VIEW A , " + schema + ".VIEWCOLUMNSOURCE B, " + schema + ".VIEWCOLUMN C "; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { selectString += "WHERE A.VIEWID NOT IN ( " + placeholders + ") AND "; } else { selectString += "WHERE "; @@ -731,7 +734,7 @@ public List getLookupPathViewDependencies( try { pst = con.prepareStatement(selectString); int ndx = 1; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { Iterator ei = exceptionList.iterator(); while(ei.hasNext()) { Integer e = ei.next(); @@ -779,7 +782,7 @@ public List getLookupPathViewDependencies( + schema + ".VIEW A , " + schema + ".VIEWCOLUMNSOURCE B, " + schema + ".VIEWCOLUMN C "; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { selectString += "WHERE A.VIEWID NOT IN ( " + placeholders + ") AND "; } else { selectString += "WHERE "; @@ -796,7 +799,7 @@ public List getLookupPathViewDependencies( try { pst = con.prepareStatement(selectString); int ndx = 1; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { Iterator ei = exceptionList.iterator(); while(ei.hasNext()) { Integer e = ei.next(); @@ -844,7 +847,7 @@ public List getLookupPathViewDependencies( + schema + ".VIEWLOGICDEPEND B," + schema + ".VIEWCOLUMN C," + schema + ".VIEWCOLUMNSOURCE D "; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { selectString += "WHERE A.VIEWID NOT IN ( " + placeholders + ") AND "; } else { selectString += "WHERE "; @@ -863,7 +866,7 @@ public List getLookupPathViewDependencies( try { pst = con.prepareStatement(selectString); int ndx = 1; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { Iterator ei = exceptionList.iterator(); while(ei.hasNext()) { Integer e = ei.next(); @@ -908,7 +911,7 @@ public List getLookupPathViewDependencies( + schema + ".VIEW A, " + schema + ".VIEWLOGICDEPEND B," + schema + ".VIEWSOURCE C "; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { selectString += "WHERE A.VIEWID NOT IN ( " + placeholders + ") AND "; } else { selectString += "WHERE "; @@ -927,7 +930,7 @@ public List getLookupPathViewDependencies( try { pst = con.prepareStatement(selectString); int ndx = 1; - if(exceptionList.size() > 0) { + if(placeholders.length() > 0) { Iterator ei = exceptionList.iterator(); while(ei.hasNext()) { Integer e = ei.next();