private static void loadFilesPath(Context context){
  if (context != null) {
    try {
      File file=context.getFilesDir();
      if (file != null) {
        CrashConstants.FILES_PATH=file.getAbsolutePath();
      }
    }
 catch (    Exception e) {
      L.e("Exception thrown when accessing the files dir:");
      e.printStackTrace();
    }
  }
}

private static void loadFilesPath ( Context context ) { if ( context != null ) { try { File file = context . getFilesDir ( ) ; if ( file != null ) { CrashConstants . FILES_PATH = file . getAbsolutePath ( ) ; } } catch ( Exception e ) { L . e ( "Exception thrown when accessing the files dir:" ) ; e . printStackTrace ( ) ; } } }
helper method to set the files path . if an exception occurs , the files path will be null !
