mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:50:04 +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_; |    gl::OpenGLFunctions& gl = context()->gl_; | ||||||
| 
 | 
 | ||||||
|    if (!context()->radarProductView_->IsInitialized()) |    if (context()->radarProductView_ == nullptr || | ||||||
|  |        !context()->radarProductView_->IsInitialized()) | ||||||
|    { |    { | ||||||
|       // Defer rendering until view is initialized
 |       // Defer rendering until view is initialized
 | ||||||
|       return; |       return; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat