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
@@ -55,6 +55,12 @@ public class AndroidBoxTestGenerated extends AbstractAndroidBoxTest {
doCompileAgainstAndroidSdkTest(fileName);
}
@TestMetadata("fragmentNoGetView")
public void testFragmentNoGetView() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragmentNoGetView/");
doCompileAgainstAndroidSdkTest(fileName);
}
@TestMetadata("manyWidgets")
public void testManyWidgets() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/manyWidgets/");
@@ -106,6 +112,12 @@ public class AndroidBoxTestGenerated extends AbstractAndroidBoxTest {
doFakeInvocationTest(fileName);
}
@TestMetadata("fragmentNoGetView")
public void testFragmentNoGetView() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragmentNoGetView/");
doFakeInvocationTest(fileName);
}
@TestMetadata("manyWidgets")
public void testManyWidgets() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/manyWidgets/");