Page 1 of 1

NullReferenceException: Object reference not set to an insta

PostPosted: Fri Nov 25, 2016 7:23 am
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

Re: NullReferenceException: Object reference not set to an i

PostPosted: Fri Nov 25, 2016 11:45 am
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!

Re: NullReferenceException: Object reference not set to an i

PostPosted: Fri Nov 25, 2016 5:36 pm
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/

Re: NullReferenceException: Object reference not set to an i

PostPosted: Fri Nov 25, 2016 8:37 pm
by anzerkree
Oups sorry i'm tired...

It''s not blender ... It''s gimp :)

Re: NullReferenceException: Object reference not set to an i

PostPosted: Sat Nov 26, 2016 12:13 am
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!

Re: NullReferenceException: Object reference not set to an i

PostPosted: Sat Nov 26, 2016 3:45 pm
by anzerkree
I have this message with LUT Editor.
Seems works with camera..

Re: NullReferenceException: Object reference not set to an i

PostPosted: Sat Nov 26, 2016 7:29 pm
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!

Re: NullReferenceException: Object reference not set to an i

PostPosted: Tue Jul 31, 2018 5:02 am
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

Re: NullReferenceException: Object reference not set to an i

PostPosted: Wed Aug 15, 2018 10:33 am
by Ricardo Teixeira
Can this issue be replicated on a new empty project?