ArgumentNullException when pressing Cancel button in edithtml content

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
8/15/2007 7:07:48 AM
Gravatar
Total Posts 22

ArgumentNullException when pressing Cancel button in edithtml content

Hi Joe,

the cancel button I'm talking about is the one in http://www.mojoportal.com/htmlmodule.aspx (a picture is worth a thousand words).

I'm experimenting with MojoPortal 2.2.3.4 for MySQL (layer 2.2.3.4b)

see stack trace below

Federico

Server Error in '/MojoPortal' Application.
--------------------------------------------------------------------------------

Value cannot be null.
Parameter name: oldValue
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: oldValue

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: oldValue]
System.String.Replace(String oldValue, String newValue) +0
mojoPortal.Web.Editor.FCKeditor.LoadPostData(String postDataKey, NameValueCollection postCollection) +134
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +408
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4526




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

 

8/15/2007 7:35:35 AM
Gravatar
Total Posts 18439

Re: ArgumentNullException when pressing Cancel button in edithtml content

Hi Federico,

I cannot reproduce this issue here. The line of code where this error happened is like this:

String noScriptKey = postDataKey.Replace(this.ID, "editor_noscript");

so presumably this.ID is null, very strange but I put a null check there in the code to avoid this in the future.

Whatever the cause of this I don't think it is related to the db.

Joe

8/16/2007 3:41:40 PM
Gravatar
Total Posts 22

Re: ArgumentNullException when pressing Cancel button in edithtml content

I think this happens when no related row in mp_htmlcontent still exists.

You must sign in to post in the forums. This thread is closed to new posts.