Toad World® Forums

Null Ref executing package script

In TDA Beta 3.1.0.278, I get a null reference exception when executing or formatting a package spec or body script. This also occurred in the previous build.

Following is a test script and the stack trace of the error when executing an formatting the script.

CREATE OR REPLACE PACKAGE BODY "TEST_PKG"
AS
/* Verify client id */
PROCEDURE TEST_PROCEDURE (in_CLIENT_ID IN VARCHAR2,
OUT_CLIENT_CURSOR OUT outcursor)
IS
BEGIN
OPEN OUT_CLIENT_CURSOR FOR
SELECT 'CLIENT_ID' AS "AccountNumber" FROM DUAL;
END TEST_PROCEDURE;
END TEST_PKG;

Executing "CREATE OR REPLACE PACKAGE"

System.NullReferenceException
Object reference not set to an instance of an object.
Stack Trace:
at Quest.Toad.Editor.EditorForm.RefreshCodeTrls()
at Quest.Toad.Editor.EditorForm.Parse(Boolean processParserMessages, Boolean syntaxCheck)
at Quest.Toad.Editor.EditorForm.DoExecuteSqlStatement()
at Quest.Toad.Editor.EditorForm.ExecuteSqlStatement()

Formatting "CREATE OR REPLACE PACKAGE"

System.NullReferenceException
Object reference not set to an instance of an object.
Stack Trace:
at Quest.Toad.Editor.EditorForm.RefreshCodeTrls()
at Quest.Toad.Editor.EditorForm.Parse(Boolean processParserMessages, Boolean syntaxCheck)
at Quest.Toad.Editor.EditorForm.FormatCode()
at Quest.Toad.Editor.ActionFormatCodeItem.FormatCode(Object sender, ItemClickEventArgs e)
at Quest.Toad.Editor.ActionFormatCodeItem.ActionFormatCodeItem_ItemClick(Object sender, ItemClickEventArgs e)
at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarItemLink.OnLinkClick()
at DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraBars.Controls.DockedBarControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Thanks,

Brad

Yes. This is very easily reproducable. I entered CR94012 to fix.

Debbie

Woops. I have a short memory. I fixed this on the 19th. It just missed the last Beta but will be in the next one.

Debbie