Wednesday, 15 June 2011

Null pointer-exception (FunctionTypeList.ascx) i Composer module-plugin for EPiServer -



Null pointer-exception (FunctionTypeList.ascx) i Composer module-plugin for EPiServer -

i have installed composer-module episerver on episerver cms 6 r2-site deployed @ iis 7. have configured web.config according instructions. can view page in 'composer edit'-mode.

i next error when seek access composer-plugin in admin-mode (which used register composer-blocks).

how solve this?: server error in '/' application. object reference not set instance of object. description: unhandled exception occurred during execution of current web request. please review stack trace more info error , originated in code.

exception details: system.nullreferenceexception: object reference not set instance of object. source error: line 60: <itemtemplate> line 61: <nobr> line 62: <asp:label id="label1" runat="server" line 63: tooltip ='<%#databinder.eval(container.dataitem, "description")%>' line 64: text = '<%# utils.trimdescription(databinder.eval(container.dataitem, "description").tostring(),20).tohtmlencoded()%>'/> source file: c:\episerver\sites\skien\dropit\plugin\extension\ui\admin\controls\functiontypelist.ascx line: 62 stack trace: [nullreferenceexception: object reference not set instance of object.] asp.dropit_plugin_extension_ui_admin_controls_functiontypelist_ascx.__databinding__control19(object sender, eventargs e) in c:\episerver\sites\skien\dropit\plugin\extension\ui\admin\controls\functiontypelist.ascx:62 system.web.ui.control.databind(boolean raiseondatabinding) +303 system.web.ui.control.databindchildren() +12659735 system.web.ui.control.databind(boolean raiseondatabinding) +321 system.web.ui.control.databindchildren() +12659735 system.web.ui.control.databind(boolean raiseondatabinding) +321 system.web.ui.webcontrols.gridview.createrow(int32 rowindex, int32 datasourceindex, datacontrolrowtype rowtype, datacontrolrowstate rowstate, boolean databind, object dataitem, datacontrolfield[] fields, tablerowcollection rows, pageddatasource pageddatasource) +295 system.web.ui.webcontrols.gridview.createchildcontrols(ienumerable datasource, boolean databinding) +4780 system.web.ui.webcontrols.compositedataboundcontrol.performdatabinding(ienumerable data) +95 system.web.ui.webcontrols.gridview.performdatabinding(ienumerable data) +19 system.web.ui.webcontrols.databoundcontrol.ondatasourceviewselectcallback(ienumerable data) +222 system.web.ui.webcontrols.databoundcontrol.performselect() +313 system.web.ui.control.databindchildren() +12659735 system.web.ui.control.databind(boolean raiseondatabinding) +321 system.web.ui.control.databindchildren() +12659735 system.web.ui.control.databind(boolean raiseondatabinding) +321 system.web.ui.control.databindchildren() +12659735 system.web.ui.control.databind(boolean raiseondatabinding) +321 system.web.ui.control.databindchildren() +12659735 system.web.ui.control.databind(boolean raiseondatabinding) +321 dropit.extension.ui.admin.controls.functiontypelist.databind() +646 system.web.ui.control.loadrecursive() +71 system.web.ui.control.loadrecursive() +190 system.web.ui.control.loadrecursive() +190 system.web.ui.control.loadrecursive() +190 system.web.ui.control.loadrecursive() +190 system.web.ui.control.loadrecursive() +190 system.web.ui.control.loadrecursive() +190 system.web.ui.control.loadrecursive() +190 system.web.ui.control.loadrecursive() +190 system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +3178 version information: microsoft .net framework version:4.0.30319; asp.net version:4.0.30319.17929

this post mari jørgensen describes same issue on of other controls in composer.

basically episerver homecoming empty string if description not set, while pagetypebuilder returns null.

the solution modify line of code homecoming string.empty if description null:

<%# utils.trimdescription(databinder.eval(container.dataitem, "description") string ?? string.empty,20).tohtmlencoded()%>'/>

episerver

No comments:

Post a Comment