SuperKaioken / odbc2kml

Automatically exported from code.google.com/p/odbc2kml
0 stars 0 forks source link

Changing Database Info and updating can break Save Connection #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Click Edit Connection ( I did it on MySQL)
2.Click Save and Edit
3.Click select on a database table ( I did my own that I set up called
powerplants which only exists in MySQL)
4.Click save connection
5.Change Connection Information to Oracle
6.Click Update
7.Click Save Connection
8.Breaks

What is the expected output? What do you see instead?
Shouldn't break.

Please use labels and text to provide additional information.
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 401:
Line 402:                //Validate the mapping
Line 403:                if (!this.mapping.isValid())
Line 404:                {
Line 405:                    return 2;

Source File: C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\Connection.cs    Line: 403

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   HCI.Connection.saveConn() in C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\Connection.cs:403
   HCI.ConnDetails.modifyConnection(Object sender, EventArgs e) in
C:\Documents and Settings\David\My
Documents\ODBC2KML\hci\HCI\ConnDetails.aspx.cs:2539
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) +110

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBa
ckEvent(String
eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Version Information: Microsoft .NET Framework Version:2.0.50727.3603;
ASP.NET Version:2.0.50727.3082 

Original issue reported on code.google.com by Spoofed...@gmail.com on 8 Apr 2010 at 6:46

GoogleCodeExporter commented 9 years ago

Original comment by sweenr...@gmail.com on 8 Apr 2010 at 7:26

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r522.

Original comment by sweenr...@gmail.com on 8 Apr 2010 at 7:30

GoogleCodeExporter commented 9 years ago

Original comment by nind...@gmail.com on 9 Apr 2010 at 10:57