mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	content null check in full text search, #3672
This commit is contained in:
		
							parent
							
								
									62c2547557
								
							
						
					
					
						commit
						1e551581f8
					
				| @ -69,6 +69,10 @@ class NoteContentFulltextExp extends Expression { | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         if (!content || typeof content !== 'string') { | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         content = this.preprocessContent(content, type, mime); |         content = this.preprocessContent(content, type, mime); | ||||||
| 
 | 
 | ||||||
|         if (this.tokens.length === 1) { |         if (this.tokens.length === 1) { | ||||||
| @ -98,6 +102,7 @@ class NoteContentFulltextExp extends Expression { | |||||||
|                 resultNoteSet.add(becca.notes[noteId]); |                 resultNoteSet.add(becca.notes[noteId]); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  | 
 | ||||||
|         return content; |         return content; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam