NullReferenceException: Object reference not set to an insta

Advanced Color Grading for Unity Pro

NullReferenceException: Object reference not set to an insta

Postby anzerkree » Fri Nov 25, 2016 7:23 am

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
anzerkree
 
Posts: 4
Joined: Fri Nov 25, 2016 7:20 am

Re: NullReferenceException: Object reference not set to an i

Postby Ricardo Teixeira » Fri Nov 25, 2016 11:45 am

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: NullReferenceException: Object reference not set to an i

Postby anzerkree » Fri Nov 25, 2016 5:36 pm

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

Postby anzerkree » Fri Nov 25, 2016 8:37 pm

Oups sorry i'm tired...

It''s not blender ... It''s gimp :)
anzerkree
 
Posts: 4
Joined: Fri Nov 25, 2016 7:20 am

Re: NullReferenceException: Object reference not set to an i

Postby Ricardo Teixeira » Sat Nov 26, 2016 12:13 am

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: NullReferenceException: Object reference not set to an i

Postby anzerkree » Sat Nov 26, 2016 3:45 pm

I have this message with LUT Editor.
Seems works with camera..
anzerkree
 
Posts: 4
Joined: Fri Nov 25, 2016 7:20 am

Re: NullReferenceException: Object reference not set to an i

Postby Ricardo Teixeira » Sat Nov 26, 2016 7:29 pm

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: NullReferenceException: Object reference not set to an i

Postby allenmarsh » Tue Jul 31, 2018 5:02 am

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
allenmarsh
 
Posts: 1
Joined: Tue Jul 31, 2018 4:59 am

Re: NullReferenceException: Object reference not set to an i

Postby Ricardo Teixeira » Wed Aug 15, 2018 10:33 am

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm


Return to Amplify Color

Who is online

Users browsing this forum: No registered users and 0 guests

cron