ClassCastException
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenSatNav |
New
|
High
|
Guillaume Rosaire |
Bug Description
Since october 20th, the automatic bug catcher in OSN fired 4 bug reports (even one from Chris this afternoon :)) :
All show the same stacktrace
<pre>
java.lang.
at android.
at android.
at android.
at android.
at android.
at android.
at android.
at java.lang.
at java.lang.
at com.android.
at com.android.
at dalvik.
Caused by: java.lang.
at org.opensatnav.
at android.
at android.
... 11 more
</pre>
At least, that shows that our development versions are used.
That was observed on 3 G1 and 1 Samsung Galaxy phones, with Android 1.5 and 1.6.
That must come from a modification in rev 65 or 66. We must fix this asap.
After looking at the code in SVN, I can't understand what happens, GetDirectionAct ivity and getdirections.xml have not changed for a long time.
At the moment the Exception is thrown on this line : R.id.modeoftran sport); </code>
android: id="@+id/ modeoftransport "
android: layout_ width=" fill_parent"
android: layout_ height= "wrap_content"
android: drawSelectorOnT op="false"
android: prompt= "@+id/mode_ of_transport_ types"
<pre>
<code class="Java"> Spinner s = (Spinner) findViewById(
</pre>
And this id seems indeed to refer to a Spinner :
<pre>
<Spinner
/>
</pre>
May be related to this issue on Android core : code.google. com/p/android/ issues/ detail? id=3981
http://
Fixed with Eclair, that means we'll have to find a workaround in the meantime if it's related.