Submitted By: Michael Slack (slackmg)Assigned To: When attempting to use a 'db:select' tag in an empty form (no table), and setting the fieldName attribute to a unique name, a NullPointerException is thrown. From the documentation and looking through the source code, this seems to be allowed. Determined the exception was being thrown in DbBaseHandlerTag in the method 'setFieldName'. Modified the method as such: public void setFieldName(String fieldName) { this.fieldName = fieldName; if (parentForm.getTable() != null) { // MGS this.field = parentForm.getTable().getFieldByName(fieldName); } else { this.field = null; }
if (parentForm.isSubForm()) { // tell parent that _this_ class will generate the html tag, not DbBodyTag! if (this.field != null) // MGS parentForm.strikeOut(this.field); } } I'm currently using this fix and it seems to work well. Mike ps this was on our bug list but I doubted anyone would see it there. Shawn ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms