mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	fix nil pointer when adding a due date (#5587)
* fix nil pointer * remove nil check and just call loadRepo regardless
This commit is contained in:
		
				
					committed by
					
						
						Jonas Franz
					
				
			
			
				
	
			
			
			
						parent
						
							a82ba73346
						
					
				
				
					commit
					21357a4ae0
				
			@@ -708,6 +708,10 @@ func createDeadlineComment(e *xorm.Session, doer *User, issue *Issue, newDeadlin
 | 
			
		||||
		content = newDeadlineUnix.Format("2006-01-02") + "|" + issue.DeadlineUnix.Format("2006-01-02")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if err := issue.LoadRepo(); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return createComment(e, &CreateCommentOptions{
 | 
			
		||||
		Type:    commentType,
 | 
			
		||||
		Doer:    doer,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user