Non-threaded

Forums » Bugs & Problems » Read Thread

Post reports about problems or bugs in here.
This bug was closed 5/31/2014: no new info provided

i got a problem with the advanced editor

12 years ago

here is what it says

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.SecondaryNavigation_BeforeNavigate(Object sender, EventArgs e) in c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\Properties.aspx:75
   ASP.SecondaryNavigation.btn_Click(Object sender, EventArgs e) in c:\Websites\ChooseYourStory\ChooseYourStory.com\my\adveditor\SecondaryNavigation.ascx:54
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3690


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

i got a problem with the advanced editor

12 years ago

What were you doing that caused this?

For example: Opening the editor or maybe you forgot to put a '@' in $DEST := @P100 - you know, that sort of info....

i got a problem with the advanced editor

12 years ago

Right now, I could only guess it may of had to do with setting the Difficulty of your game...

Is it still doing this? Or was it just a passing glitch?