If pk is NULL, the backend would segfault when accessing ->algo and the following NULL check was never reached.
If pk is NULL, the backend would segfault when accessing ->algo and the
following NULL check was never reached.

This problem was found by Coccinelle (null_ref.cocci from coccicheck).

Marti Raudsepp

50wu/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,rvs/gpdb,royc1/gpdb,rvs/gpdb,zaksoup/gpdb,CraigHarris/gpdb,chrishajas/gpdb,CraigHarris/gpdb,Chibin/gpdb,50wu/gpdb,royc1/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,lintzc/gpdb,lintzc/gpdb,jmcatamney/gpdb,zaksoup/gpdb,cjcjameson/gpdb,zaksoup/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,50wu/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,Chibin/gpdb,ashwinstar/gpdb,Quikling/gpdb,yuanzhao/gpdb,lisakowen/gpdb,adam8157/gpdb,rvs/gpdb,lintzc/gpdb,greenplum-db/gpdb,Chibin/gpdb,Chibin/gpdb,zaksoup/gpdb,ahachete/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,Quikling/gpdb,ahachete/gpdb,xinzweb/gpdb,kaknikhil/gpdb,royc1/gpdb,lintzc/gpdb,rvs/gpdb,xuegang/gpdb,edespino/gpdb,adam8157/gpdb,janebeckman/gpdb,edespino/gpdb,greenplum-db/gpdb,rvs/gpdb,xuegang/gpdb,janebeckman/gpdb,janebeckman/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,janebeckman/gpdb,Quikling/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,cjcjameson/gpdb,chrishajas/gpdb,50wu/gpdb,chrishajas/gpdb,CraigHarris/gpdb,chrishajas/gpdb,edespino/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,xuegang/gpdb,zaksoup/gpdb,xuegang/gpdb,Quikling/gpdb,royc1/gpdb,50wu/gpdb,adam8157/gpdb,royc1/gpdb,kaknikhil/gpdb,edespino/gpdb,greenplum-db/gpdb,adam8157/gpdb,lintzc/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,adam8157/gpdb,lintzc/gpdb,zaksoup/gpdb,xinzweb/gpdb,xinzweb/gpdb,lisakowen/gpdb,CraigHarris/gpdb,ahachete/gpdb,50wu/gpdb,chrishajas/gpdb,royc1/gpdb,0x0FFF/gpdb,lintzc/gpdb,Chibin/gpdb,Chibin/gpdb,rvs/gpdb,zaksoup/gpdb,lisakowen/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,rvs/gpdb,lisakowen/gpdb,edespino/gpdb,edespino/gpdb,adam8157/gpdb,Quikling/gpdb,Quikling/gpdb,lisakowen/gpdb,janebeckman/gpdb,cjcjameson/gpdb,Quikling/gpdb,kaknikhil/gpdb,ahachete/gpdb,xinzweb/gpdb,ahachete/gpdb,xinzweb/gpdb,xuegang/gpdb,yuanzhao/gpdb,lintzc/gpdb,yuanzhao/gpdb,xuegang/gpdb,ahachete/gpdb,greenplum-db/gpdb,lisakowen/gpdb,Chibin/gpdb,adam8157/gpdb,janebeckman/gpdb,lisakowen/gpdb,Chibin/gpdb,cjcjameson/gpdb,xinzweb/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,adam8157/gpdb,jmcatamney/gpdb,lintzc/gpdb,janebeckman/gpdb,janebeckman/gpdb,xinzweb/gpdb,xuegang/gpdb,xuegang/gpdb,Chibin/gpdb,rvs/gpdb,kaknikhil/gpdb,royc1/gpdb,ashwinstar/gpdb,chrishajas/gpdb,ahachete/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,edespino/gpdb,lisakowen/gpdb,CraigHarris/gpdb,xinzweb/gpdb,Quikling/gpdb,Quikling/gpdb,chrishajas/gpdb,50wu/gpdb,0x0FFF/gpdb,chrishajas/gpdb,ahachete/gpdb,rvs/gpdb,CraigHarris/gpdb,edespino/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,rvs/gpdb,cjcjameson/gpdb,zaksoup/gpdb,xuegang/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,50wu/gpdb,yuanzhao/gpdb,CraigHarris/gpdb,Chibin/gpdb,edespino/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,Quikling/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,janebeckman/gpdb,royc1/gpdb,edespino/gpdb,janebeckman/gpdb,ashwinstar/gpdb