Non-threaded

Forums » Bugs & Problems » Read Thread

Post reports about problems or bugs in here.
This bug was closed 5/31/2014: see BerkaZerka tips

Save Description

12 years ago

Whenever I try to edit one of my storygame's properties, like change the description, it won't show unless I switch to simple text editor. I can't choose a category or rating for my unpublished game. Then, when I try to save the changes I've made to the description I get this:

Server Error in '/' Application.

 


 

Object reference not set to an instance of an object.

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.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


 

Line 88: 			cmd.Parameters.Add("@Story_Title", SqlDbType.VarChar, 100).Value = StoryTitle.Text;
Line 89: 			cmd.Parameters["@Story_Title"].Direction = ParameterDirection.InputOutput;
Line 90: 			cmd.Parameters.Add("@Difficulty_Level", SqlDbType.Int).Value = EditorHelper.NullIf(Request.Form[DifficultyLevel.UniqueID]);
Line 91: 			cmd.Parameters.Add("@Maturity_Level", SqlDbType.Int).Value = EditorHelper.NullIf(Request.Form[MaturityLevel.UniqueID]);
Line 92: 			cmd.Parameters.Add("@Category_Id", SqlDbType.VarChar).Value = EditorHelper.NullIf(Request.Form[Category.UniqueID]);


Source File: c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\Properties.aspx    Line: 90

Stack Trace:


 

[NullReferenceException: Object reference not set to an instance of an object.]
   ChooseYourStory.Stories.Editing.EditorHelper.NullIf(Object o) in c:\BuildMasterAgent\_AGTTMP\_A4\_S11\SRC\ChooseYourStory\Stories\Editing\EditorHelper.cs:187
   ASP.my_adveditor_properties_aspx.SaveChanges() in c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\Properties.aspx:90
   ASP.my_adveditor_properties_aspx.SaveChanges_Click(Object sender, EventArgs e) in c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\Properties.aspx:69
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +153
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706


 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

 

 

I don't know if this is just me, or what.

Save Description

12 years ago

I have a similar problem, in that I can't see the story description - unless I hit the Compatibility View Button that comes with Internet Explorer. After hitting that, the page refreshes and I can edit the Description Page. After saving the page, I turn off Compatibility View however, as it screws up other things, like the forums...

Save Description

12 years ago

That works for me, thanks.

Save Description

12 years ago

Glad to help  :)