Fixed issue with empty feature file causing nil pointer deref
Этот коммит содержится в:
		
							родитель
							
								
									64ede2d482
								
							
						
					
					
						коммит
						0c864f1400
					
				
					 1 изменённых файлов: 4 добавлений и 1 удалений
				
			
		
							
								
								
									
										5
									
								
								suite.go
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								suite.go
									
										
									
									
									
								
							| 
						 | 
					@ -748,7 +748,10 @@ func (s sortByOrderGiven) Swap(i, j int)      { s[i], s[j] = s[j], s[i] }
 | 
				
			||||||
func filterFeatures(tags string, collected map[string]*feature) (features []*feature) {
 | 
					func filterFeatures(tags string, collected map[string]*feature) (features []*feature) {
 | 
				
			||||||
	for _, ft := range collected {
 | 
						for _, ft := range collected {
 | 
				
			||||||
		applyTagFilter(tags, ft)
 | 
							applyTagFilter(tags, ft)
 | 
				
			||||||
		features = append(features, ft)
 | 
					
 | 
				
			||||||
 | 
							if ft.Feature != nil {
 | 
				
			||||||
 | 
								features = append(features, ft)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sort.Sort(sortByOrderGiven(features))
 | 
						sort.Sort(sortByOrderGiven(features))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче