When you try to use the getProductPrice (String whereClause) sending a null whereClause. Or when you try to use getProductPrice (boolean refresh) that sends a null whereClause always you get the following error:
SEVERE: org.postgresql.util.PSQLException: ERROR: syntax error at or near "null"
And when you send a whereClase you get an error also if the whereClause does not start with an AND.
When you try to use the getProductPrice (String whereClause) sending a null whereClause.
Or when you try to use getProductPrice (boolean refresh) that sends a null whereClause always you get the following error:
SEVERE: org.postgresql.util.PSQLException: ERROR: syntax error at or near "null"
And when you send a whereClase you get an error also if the whereClause does not start with an AND.
The attached patch fix the problem