Am trying to help someone out who gets;
Object reference not set to an instance of an object.
On opening a ticket and a software crash.
Cannot copy and paste error report as C&P copies the other prompt box but is along these lines;
System.Reflection.TargetInvocationException
Exception has been thrown
mscorlib
and
System.NullReferenceException
Object reference not set to an instance of an object
Samba.Presentation.ViewModels
Any advice greatly appreciated.
emre
2
That does not tells what the error can be. Send me a backup.
emre
3
Can you explain error reproducing steps? Ticket closes fine for me.
its opening the ticket that is only one open on table B1 from 23rd
has been used today, just that one ticket.
emre
6
Somehow Null Customer assigned to ticket.
I think I saw that when looking in database, but there were other tickets with similar I think… so wasn’t sure if that was it.
emre
8
You can correct it by deleting lines on TicketEntities
table that have NULL
value on EntityName
column. However we should find how it happens.
There was a customer entity in the list (now called ‘blank’) which had no name?
Would this be a cause?
emre
10
No we won’t allow creating Entities without name. That might be something else.
Edit: wow yes you have entity without a name. How it can be possible?
JTRTech
11
there was defiantly an entity in the batch entity editor which had no name…
I changed it to name of ‘blank’ as thought it was odd.
emre
12
Entity creation code validates that. lol… This is really strange.
JTRTech
13
Whats the best way to fix the table for now?
JTRTech
15
FYI they were running .49 but first thing i did was update to check wasnt a fixed bug.
emre
16
That part didn’t changed for a long time. does not relates with .49. Does it have any action that updates entities?
emre
18
I couldn’t reproduce it for another ticket or entity. I’ll be glad hear if you notice something related.