add @Nullable to warn via IDE

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-03-21 14:14:01 +01:00
parent de5bec442a
commit 88b4ef9ffc
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -120,7 +120,8 @@ public class FileDataStorageManager {
}
public OCFile getFileById(long id) {
public @Nullable
OCFile getFileById(long id) {
Cursor c = getFileCursorForValue(ProviderTableMeta._ID, String.valueOf(id));
OCFile file = null;
if (c.moveToFirst()) {