Android Extensions: Fix KT-10969 (NullPointerException when finding view in Fragment if getView() is null)

(cherry picked from commit 80f5852)
This commit is contained in:
Yan Zhulanow
2016-04-21 21:06:30 +03:00
parent 2cd0e9c8d8
commit 530ab42de6
8 changed files with 140 additions and 1 deletions
@@ -5,5 +5,5 @@ import android.app.Activity
abstract class Fragment {
open fun getActivity(): Activity = throw Exception("Function getActivity() is not overridden")
open fun getView(): View = throw Exception("Function getView() is not overridden")
open fun getView(): View? = throw Exception("Function getView() is not overridden")
}