mirror of
				https://codeberg.org/tom79/Fedilab.git
				synced 2025-10-20 11:20:16 +03:00 
			
		
		
		
	Fix issue #54 - Crash with index
This commit is contained in:
		
							parent
							
								
									de80c5b914
								
							
						
					
					
						commit
						b6f8dbf1ce
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -184,8 +184,8 @@ public class SpannableHelper { | ||||||
|             if (matchEnd > content.toString().length()) { |             if (matchEnd > content.toString().length()) { | ||||||
|                 matchEnd = content.toString().length(); |                 matchEnd = content.toString().length(); | ||||||
|             } |             } | ||||||
|             if (content.toString().length() > matchEnd) { |             if (content.toString().length() > matchEnd || matchStart < 0) { | ||||||
|                 matchEnd = content.toString().length(); |                 continue; | ||||||
|             } |             } | ||||||
|             final String url = content.toString().substring(matchStart, matchEnd); |             final String url = content.toString().substring(matchStart, matchEnd); | ||||||
|             String newURL = Helper.transformURL(context, url); |             String newURL = Helper.transformURL(context, url); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue