title: JNI jarray argument has non-array type
body: <p>In my Java code, i have a method as follows:</p>
  
  <pre class="lang-java prettyprint-override"><code>
  HashSet&lt;String&gt; scanned_items = new HashSet&lt;String&gt;();
  
  String[] getScannedBuffer() {
        String[] result = scanned_items.toArray(new String[0]);
        mReader.getInventoryBufferTagCount((byte) 0xff);
  
        return result;
  }
  </code></pre>
  
  <p>and in my Qt code, I am calling it as such:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>QAndroidJniObject response("com/test/RfidReader");
  response.callObjectMethod("getScannedBuffer","()[Ljava/lang/String;");
  </code></pre>
  
  <p>I am trying to iterate through the string array using the following code:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>QAndroidJniEnvironment env;
  jobjectArray stringDataArray = response.object&lt;jobjectArray&gt;();
  jsize dataArraySize = env-&gt;GetArrayLength(stringDataArray);
  </code></pre>
  
  <p>However, I am getting the following error: JNI DETECTED ERROR IN APPLICATION: jarray argument has non-array type</p>