Велимир Мајсторов
Велимир Мајсторов
If subject is NULL (mail have no subject) I got this exception > $this->headers must be an instance of Headers Need to handle NULL subject without error/exception.
### Cause of error ```java Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: length=15; index=-1 at java.util.ArrayList.set(ArrayList.java:455) at com.owncloud.android.ui.fragment.OCFileListFragment.updateOCFile(OCFileListFragment.java:1372) at com.owncloud.android.ui.activity.FileActivity.onCreateShareViaLinkOperationFinish(FileActivity.java:807) at com.owncloud.android.ui.activity.FileActivity.onRemoteOperationFinish(FileActivity.java:393) at com.owncloud.android.ui.activity.FileDisplayActivity.onRemoteOperationFinish(FileDisplayActivity.java:1629) at com.owncloud.android.services.OperationsService.lambda$dispatchResultToOperationListeners$0(OperationsService.java:786) at com.owncloud.android.services.OperationsService$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99)...