--- a/gp_cppsupport/printoutput.cpp 2010-10-15 10:55:28.625469726 -0400 +++ b/gp_cppsupport/printoutput.cpp 2010-10-15 10:55:34.785077184 -0400 @@ -87,7 +87,7 @@ { const char *str; str=FindString("Driver"); - if(str[0]=='p' && str[1]=='s') // Are we printing in PostScript mode? + if(str && str[0]=='p' && str[1]=='s') // Are we printing in PostScript mode? SetDataType(PQINFO_POSTSCRIPT); else SetDataType(PQINFO_RAW);