mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +00:00 
			
		
		
		
	Prevent color table crash if radarProductView_ is null
This commit is contained in:
		
							parent
							
								
									b80dbb8b55
								
							
						
					
					
						commit
						df60007b07
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -107,7 +107,8 @@ void ColorTableLayer::Render(const QMapbox::CustomLayerRenderParameters& params) | |||
| { | ||||
|    gl::OpenGLFunctions& gl = context()->gl_; | ||||
| 
 | ||||
|    if (!context()->radarProductView_->IsInitialized()) | ||||
|    if (context()->radarProductView_ == nullptr || | ||||
|        !context()->radarProductView_->IsInitialized()) | ||||
|    { | ||||
|       // Defer rendering until view is initialized
 | ||||
|       return; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat