mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-30 22:34:02 +01:00 
			
		
		
		
	Add exception logging to UploadController
This commit is contained in:
		
							parent
							
								
									a7427f21bf
								
							
						
					
					
						commit
						9543c03cab
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -13,6 +13,7 @@ import android.os.IBinder; | |||
| import android.preference.PreferenceManager; | ||||
| import android.provider.MediaStore; | ||||
| import android.text.TextUtils; | ||||
| import android.util.Log; | ||||
| import android.webkit.MimeTypeMap; | ||||
| 
 | ||||
| import java.io.IOException; | ||||
|  | @ -119,7 +120,9 @@ public class UploadController { | |||
|                         contribution.setDataLength(length); | ||||
|                     } | ||||
|                 } catch(IOException e) { | ||||
|                     throw new RuntimeException(e); | ||||
|                     Log.e("UploadController", "IO Exception: ", e); | ||||
|                 } catch(NullPointerException e) { | ||||
|                     Log.e("UploadController", "Null Pointer Exception: ", e); | ||||
|                 } | ||||
| 
 | ||||
|                 String mimeType = (String)contribution.getTag("mimeType"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 misaochan
						misaochan