NullReferenceException: Object reference not set to an insta

Advanced Color Grading for Unity Pro
Post Reply
anzerkree
Posts: 4
Joined: Fri Nov 25, 2016 7:20 am

NullReferenceException: Object reference not set to an insta

Post by anzerkree »

Hello,

I'm using Unity v5.4.3f1 (personal edition)

I'm trying to load a graded file make with Blender.
but when i'm click on reload, i have this message in the console :

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
AmplifyColor.FileHandler.ReadFromFile () (at Assets/AmplifyColor/Plugins/Editor/FileHandler.cs:100)
AmplifyColor.FileHandler.Reload () (at Assets/AmplifyColor/Plugins/Editor/FileHandler.cs:112)
AmplifyColor.LUTEditor.ShowGUIFile () (at Assets/AmplifyColor/Plugins/Editor/LUTEditor.cs:206)
AmplifyColor.LUTEditor.OnGUI () (at Assets/AmplifyColor/Plugins/Editor/LUTEditor.cs:84)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Can you help me ?

Thanks a lot
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: NullReferenceException: Object reference not set to an i

Post by Ricardo Teixeira »

anzerkree wrote:Hello,

I'm using Unity v5.4.3f1 (personal edition)

I'm trying to load a graded file make with Blender.
but when i'm click on reload, i have this message in the console :

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
AmplifyColor.FileHandler.ReadFromFile () (at Assets/AmplifyColor/Plugins/Editor/FileHandler.cs:100)
AmplifyColor.FileHandler.Reload () (at Assets/AmplifyColor/Plugins/Editor/FileHandler.cs:112)
AmplifyColor.LUTEditor.ShowGUIFile () (at Assets/AmplifyColor/Plugins/Editor/LUTEditor.cs:206)
AmplifyColor.LUTEditor.OnGUI () (at Assets/AmplifyColor/Plugins/Editor/LUTEditor.cs:84)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Can you help me ?

Thanks a lot
Hello,

We would be happy to help. What exact Amplify Color version are you currently using? (Windows > Amplify Color > About). When does the error come up?
I'm trying to load a graded file make with Blender.
Please elaborate.

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
anzerkree
Posts: 4
Joined: Fri Nov 25, 2016 7:20 am

Re: NullReferenceException: Object reference not set to an i

Post by anzerkree »

Hey,

First, sorry for my bad english :)

My Amplify Color version is 1.6_3_dev001 (from unity store)

I'm not Photoshop user. I use Blender and i followed the "3-Standard/Other Image Editors Workflow" tutorial
http://amplify.pt/unity/amplify-color/manual/
anzerkree
Posts: 4
Joined: Fri Nov 25, 2016 7:20 am

Re: NullReferenceException: Object reference not set to an i

Post by anzerkree »

Oups sorry i'm tired...

It''s not blender ... It''s gimp :)
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: NullReferenceException: Object reference not set to an i

Post by Ricardo Teixeira »

No problem, thank you for the additional information. Do you see that error when you try to load the lut using the LUT Editor or when adding it to the camera.

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
anzerkree
Posts: 4
Joined: Fri Nov 25, 2016 7:20 am

Re: NullReferenceException: Object reference not set to an i

Post by anzerkree »

I have this message with LUT Editor.
Seems works with camera..
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: NullReferenceException: Object reference not set to an i

Post by Ricardo Teixeira »

anzerkree wrote:I have this message with LUT Editor.
Seems works with camera..
Hello,

I tried to replicate the issue using your Unity and Amplify Color version but, unfortunately, I did not encounter any problems. I recommend downloading the latest AC version directly from our own download page using your Unity Asset Store invoice number, deleting your current Amplify Color folder and importing the latest package.

If importing the new version does not solve the issue, please send us a sample project and the graded image before importing it into Unity, we would be happy to test it on our side.

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
allenmarsh
Posts: 1
Joined: Tue Jul 31, 2018 4:59 am

Re: NullReferenceException: Object reference not set to an i

Post by allenmarsh »

A NullReferenceException exception is thrown when you try to access a member on a type whose value is null. A NullReferenceException exception typically reflects as developer error. To fully understand why a NullReferenceException is thrown, it is important to know the difference between value types and reference types.

So, if you're dealing with value types, NullReferenceExceptions can not occur. Though you need to keep alert when dealing with reference types!

Only reference types, as the name is suggesting, can hold references or point literally to nothing (or 'null'). Whereas value types always contain a value.

Reference types (these ones must be checked):

dynamic
object
string

Value types (you can simply ignore these ones):

Numeric types
Integral types
Floating-point types
decimal
bool
User defined structs
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: NullReferenceException: Object reference not set to an i

Post by Ricardo Teixeira »

Can this issue be replicated on a new empty project?
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply