Skip to main content
MauFanGilaMedical
Associate III
July 14, 2026
Solved

Today Touchgfx Designer 2.24.2 tell me "Error: Object reference not set to an instance of an object.", don't know!

Hello I’m developing long project.

Tomorrow I open the project and try to save it without any modification,

but appears this window

 

 

Can someone please help me, thankyou in advance.

nico23Best answer
Senior III
July 14, 2026

Do you have a custom trigger on your codebase? It seems TouchGFX is unable to serialize it because it refenrence a Null

System.NullReferenceException: Object reference not set to an instance of an object.
at TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(TriggerCustom t)

Most likely, one of your custom triggers is missing a required property (e.g., an action, condition, or a referenced screen/widget that no longer exists).

4 replies

MauFanGilaMedical
Associate III
July 14, 2026

I have just installed TouchGFX-4.26.1 but it has the same problem

 

 

nico23Best answer
Senior III
July 14, 2026

Do you have a custom trigger on your codebase? It seems TouchGFX is unable to serialize it because it refenrence a Null

System.NullReferenceException: Object reference not set to an instance of an object.
at TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(TriggerCustom t)

Most likely, one of your custom triggers is missing a required property (e.g., an action, condition, or a referenced screen/widget that no longer exists).

MauFanGilaMedical
Associate III
July 14, 2026

thankyou … I individuate the TriggerCustom

MauFanGilaMedical
Associate III
July 14, 2026

I belive the piece of the log that describes me the problem is

 

I removed interaction based on a CustomControl that I removed

 

{
  "InteractionName": "OnAesKeyCompleted",
  "Trigger": {
  "Type": "TriggerCustom",
  "TriggerCustomTypeName": "AesKeyGunGetter OnAesKeyCompleted happens",
  "TriggerComponent": "aesKeyGunGetter"
},
  "Action": {
  "Type": "ActionCustom",
  "FunctionName": "OnAesKeyCompleted"
}

 

and now it works