mirror of
				https://github.com/Ryujinx/GtkSharp.git
				synced 2025-11-04 13:04:53 +00:00 
			
		
		
		
	glib: In Value.Update, check if val is null before updating
Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
This commit is contained in:
		
							parent
							
								
									324fc7b0e3
								
							
						
					
					
						commit
						69ea133855
					
				| 
						 | 
				
			
			@ -573,7 +573,7 @@ namespace GLib {
 | 
			
		|||
 | 
			
		||||
		internal void Update (object val)
 | 
			
		||||
		{
 | 
			
		||||
			if (GType.Is (type, GType.Boxed) && !(val is IWrapper)) {
 | 
			
		||||
			if (GType.Is (type, GType.Boxed) && val != null && !(val is IWrapper)) {
 | 
			
		||||
				MethodInfo mi = val.GetType ().GetMethod ("Update", BindingFlags.NonPublic | BindingFlags.Instance);
 | 
			
		||||
				IntPtr boxed_ptr = g_value_get_boxed (ref this);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue