17.4.23 Unhandled Exception

For complex topics that regular users would not be interested in. For power users and database administrators.
Post Reply
teethdood
Posts: 267
Joined: Sun Jul 29, 2007 12:39 am
Location: Visalia, CA
Contact:

17.4.23 Unhandled Exception

Post by teethdood » Tue Jan 30, 2018 12:57 pm

I got this error when selecting a certain patient. Self compiled. Any ideas? Thanks!

Unhandled exception from ProgramEntry: Object reference not set to an instance of an object.
System.NullReferenceException
at OpenDentBusiness.ClaimProcs.GetHistList(Int64 patNum, List`1 benList, List`1 patPlanList, List`1 planList, Int64 excludeClaimNum, DateTime procDate, List`1 subList) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDentBusiness\Data Interface\ClaimProcs.cs:line 1645
at OpenDental.ContrChart.RefreshModuleData(Int64 patNum, Boolean isFullRefresh) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDental\Main Modules\ContrChart.cs:line 3653
at OpenDental.ContrChart.ModuleSelected(Int64 patNum, Boolean isFullRefresh, Boolean isClinicRefresh) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDental\Main Modules\ContrChart.cs:line 3619
at OpenDental.ContrChart.ModuleSelectedErx(Int64 patNum) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDental\Main Modules\ContrChart.cs:line 3590
at OpenDental.FormOpenDental.SetModuleSelected(Boolean menuBarClicked) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDental\Main Modules\FormOpenDental.cs:line 5867
at OpenDental.FormOpenDental.myOutlookBar_ButtonClicked(Object sender, ButtonClicked_EventArgs e) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDental\Main Modules\FormOpenDental.cs:line 5788
at OpenDental.OutlookBar.OnButtonClicked(OutlookButton myButton, Boolean myCancel) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDental\User Controls\OutlookBar.cs:line 321
at OpenDental.OutlookBar.OnMouseUp(MouseEventArgs e) in C:\Users\kaweahdental_2\Desktop\OD17.4\OpenDental\User Controls\OutlookBar.cs:line 313
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
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)
Philip H. Doan, DDS
http://www.kaweahdental.com/

User avatar
jsalmon
Posts: 1551
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Re: 17.4.23 Unhandled Exception

Post by jsalmon » Tue Jan 30, 2018 1:04 pm

The particular line that is having the problem is due to a null insurance plan. Running DBM will probably fix whatever 'corruption' there currently is in your database.
http://www.opendental.com/manual/databa ... nance.html

I'll make a bug ticket for this issue to see if we can't make that method a little more defensive.
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

teethdood
Posts: 267
Joined: Sun Jul 29, 2007 12:39 am
Location: Visalia, CA
Contact:

Re: 17.4.23 Unhandled Exception

Post by teethdood » Tue Jan 30, 2018 1:12 pm

Thank you Jason, DBM fixed it.
Philip H. Doan, DDS
http://www.kaweahdental.com/

Post Reply