Object reference error, right click on window crashes console

Version 2

    Right-click on incident window field crashes console

     

    Problem:

     

    Object reference error while doing a right-click on attribute fields on incident window (applies to string attributes).

     

    This happens on ready only attributes (you will see the attribute field on the windows in grey since it is read only)

     

    Object reference error


    Error message:

     

    Unhandled expection has occurred in your application....

     

    Object reference not set to an instance of an object.

     

     

    Stack trace details:

    just-in-time (JIT) debugging instead of this dialog box.

     

    ************** Exception Text **************

    System.NullReferenceException: Object reference not set to an instance of an object.

       at Touchpaper.Client.WinForms.ClientTextBox.m_contextMenu_Popup(Object sender, EventArgs e)

       at System.Windows.Forms.ContextMenu.OnPopup(EventArgs e)

       at System.Windows.Forms.ContextMenu.Show(Control control, Point pos, Int32 flags)

       at System.Windows.Forms.ContextMenu.Show(Control control, Point pos)

    .

    .

    .

    .

    Cause:

     

    Since these attributes are not directly from the incident (problem or changes) but belong to related business objects they are read only and hence have “read only” permissions. But if there is any action set to fire off automatically which need more than “read only” permissions, you will get this error. In this particular case it was the “As You Type Spell Check” action set on the business object.

     

    Solution:

     

    Open the window which is causing the problem in windows. Select the particular field on the window and look up the properties to locate the business object to which the attribute belongs to.

     

    Open the business object in object designer and use “Modify Business Object” action to see the attributes. Select the particular attribute and set “As You Type Spell Check” to “False”

     

    Repeat this for other read only attributes that may be on the window. Once finished you will have to do an IIS reset for the changes to take effect.

     

    Applies to ITBM: All versions

     

    Tip:

     

    This doesn’t happen with “invoke knowledge search on” action which is set on the window.
    IIS reset will reset active user sessions - so plan a down time or request users to save changes in ITBM.