Fix Coverity Scan Issue for PLJAVA
A PL/JAVA NULL point reference has been reported by coverity scan.
The issue is located in guc.c for a pljava guc option
"pljava_classpath_insecure" and fixed in this commit.
@@ -4902,8 +4902,15 @@ assign_pljava_classpath_insecure(bool newval, bool doit, GucSource source)
if ( newval == true )
{
struct config_generic *pljava_cp = find_option("pljava_classpath", false, ERROR);
+ if (pljava_cp != NULL)
+ {
pljava_cp->context = PGC_USERSET;
}
+ else
+ {
+ elog(ERROR, "Failed to set insecure PLJAVA classpath");
+ }
+ }
return true;
}
