mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 05:25:15 +01:00 
			
		
		
		
	Prevent NPE on empty commit (#16812)
This commit is contained in:
		
							parent
							
								
									4e761fa385
								
							
						
					
					
						commit
						e891d68dd7
					
				@ -167,6 +167,9 @@ func (g *LogNameStatusRepoParser) Next(treepath string, paths2ids map[string]int
 | 
			
		||||
				return nil, err
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		if len(g.next) == 0 {
 | 
			
		||||
			return &ret, nil
 | 
			
		||||
		}
 | 
			
		||||
		if g.next[0] == '\x00' {
 | 
			
		||||
			g.buffull = false
 | 
			
		||||
			g.next, err = g.rd.ReadSlice('\x00')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user