title: Non nullable type throwing KotlinNullPointerException
body: <p>I have the following class in java</p>
  
  <pre><code>public class MyZClass1_ {
  
      public int x = 100;
  
  }
  </code></pre>
  
  <p>and that test in kotlin</p>
  
  <pre><code>@TestInstance(TestInstance.Lifecycle.PER_CLASS)
  class _01_SO_KotlinReflectionAccessorReturnTypeKotlinNull {
  
      @Test
      fun demonstrate_returnTypeReflectionOfAccessorFunctionInJavaClassThrowsKotlinNull() {
          val zClass1_ = MyZClass1_::class
          for (declaredProperty in zClass1_.declaredMemberProperties) {
              val propertyGetter = declaredProperty.getter
              assertNotNull(propertyGetter)
              try {
                  val returnType = propertyGetter.returnType
              } catch (ex: KotlinNullPointerException) {
                  ex.printStackTrace()
              }
          }
      }
  
  }
  </code></pre>
  
  <ul>
  <li><code>propertyGetter</code> is not null (as asserted)</li>
  <li><code>propertyGetter.returnType</code> has a non-nullable type <code>KType</code></li>
  <li>The problem is that the line <code>val returnType = propertyGetter.returnType</code> throws a <code>KotlinNullPointerException</code>.</li>
  <li>Why is that? Am i missing something?</li>
  </ul>