I have an InfoPath 2007 form that causes an "object reference not set to instance of an object" when I perform a "stsadm -o verifyformtemplate -filename "InfoPath Form Template.xsn". The problem goes away when I remove one specific Option Button from the form. In fact, if I merely unbind the Option Button from its data source, the problem goes away (i.e. verifyformtemplate does not abort).
Here's the offending table cell from the view's xsl file:
<td style="BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; BACKGROUND-COLOR: #ebf0f9; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; VERTICAL-ALIGN: bottom; PADDING-TOP: 1px">
<font size="2" face="Verdana">
<div align="center">
<input class="xdBehavior_Boolean" title="" type="radio" name="{generate-id(my:ae_pt_cert_nohosp)}" tabIndex="0" xd:xctname="OptionButton" xd:CtrlId="CTRL2923_5" xd:binding="my:ae_pt_cert_nohosp" xd:onValue="1" xd:boundProp="xd:value" style="MARGIN-BOTTOM: 0px">
<xsl:choose>
<xsl:when test="my:ae_pt_cert != 1 or my:ae_pt_hosp != 1">
<xsl:attribute name="disabled">true</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:attribute name="xd:value">
<xsl:value-of select="my:ae_pt_cert_nohosp"/>
</xsl:attribute>
<xsl:if test="my:ae_pt_cert_nohosp="1"">
<xsl:attribute name="CHECKED">CHECKED</xsl:attribute>
</xsl:if>
</input>
</div>
</font>
</td>
If anyone's interested, I can email you the xsn file.
Too wierd...
\cbf