From 88b4ef9ffcd692210a1d87ea77e640bd5a84ee6a Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 21 Mar 2018 14:14:01 +0100 Subject: [PATCH] add @Nullable to warn via IDE Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/datamodel/FileDataStorageManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java b/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java index 6843730d72..91744124cf 100644 --- a/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java +++ b/src/main/java/com/owncloud/android/datamodel/FileDataStorageManager.java @@ -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()) {