- Saved searches
- Use saved searches to filter your results more quickly
- Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ #5
- Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ #5
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #10
- Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #10
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #2327
- Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #2327
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Switch component error «attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference» #3587
- Switch component error «attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference» #3587
- Comments
- Is there an existing issue for this?
- Explain what you did
- Expected behavior
- Describe the bug
- Steps To Reproduce
- Screenshots
- Your Environment
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ #5
Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ #5
Comments
For starters, thanks for this great plugin.
I’m encountering a problem on Android only, when i extract the data from the audio file I get this error
PlatformException(Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference, null, null, null)
I’m using the same code from the example with a few modifications
final audioFile = File(widget.audioFilePath); try < final dir = await getApplicationDocumentsDirectory(); final waveFile = File('$/waveform.wave'); JustWaveform.extract( audioInFile: audioFile, waveOutFile: waveFile, zoom: WaveformZoom.pixelsPerSecond( pixelPerSecond.ceil(), ), ).listen(_progressStream.add, onError: _progressStream.addError); > catch (err)
I’m having this problem on an Android device on 9.0.
The text was updated successfully, but these errors were encountered:
Yes sure, thanks for the quick response.
I/System.out(18165): extractor format = I/System.out(18165): channel count = 1 I/System.out(18165): sample rate = 44100 I/System.out(18165): expected sample count = 200704 I/System.out(18165): samples per pixel: 678 = 44100 / 65 I/System.out(18165): scaled samples length = 592 E/libc (18165): Access denied finding property "ro.kirin.product.platform" E/HwExtendedCodec(18165): mime: audio/mp4a-latm matching compontent failed! I/OMXClient(18165): IOmx service obtained I/ACodec (18165): In onAllocateComponent create compenent, codec name: OMX.google.aac.decoder W/HwExtendedUtils(18165): hw configLocalPlayBack err = -2147483648 I/ACodec (18165): onStart W/System.err(18165): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference W/System.err(18165): at android.media.MediaFormat.getInteger(MediaFormat.java:979) W/System.err(18165): at com.ryanheise.just_waveform.WaveformExtractor.processAudio(WaveformExtractor.java:141) W/System.err(18165): at com.ryanheise.just_waveform.WaveformExtractor$ProcessThread.run(WaveformExtractor.java:71) I/System.out(18165): invokeMethod onError(Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference) W/ACodec (18165): forcing OMX state to Idle when received shutdown in ExecutingState
Thanks, that is helpful. That means the error is occurring on this line (141):
outFormat.setInteger(MediaFormat.KEY_BIT_RATE, inFormat.getInteger(MediaFormat.KEY_BIT_RATE));
which means that the input format didn’t contain the KEY_BIT_RATE field. This should be guarded against nulls.
I will take a look at my next chance, but that may also give you some ideas on how to make your local copy work in the meantime.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #10
Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #10
Comments
Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference E/AndroidRuntime( 5763): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference E/AndroidRuntime( 5763): at com.github.florent37.materialleanback.line.LineAdapter.onCreateViewHolder(LineAdapter.java:53) E/AndroidRuntime( 5763): at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5779) E/AndroidRuntime( 5763): at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5003) E/AndroidRuntime( 5763): at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4913) E/AndroidRuntime( 5763): at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2029) E/AndroidRuntime( 5763): at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1414) E/AndroidRuntime( 5763): at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1377) E/AndroidRuntime( 5763): at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:578) E/AndroidRuntime( 5763): at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3260) E/AndroidRuntime( 5763): at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3069) E/AndroidRuntime( 5763): at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3518)
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #2327
Attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference #2327
Comments
org.odk.collect.android.adapters.SortDialogAdapter.onBindViewHolder (SortDialogAdapter.java:59)
org.odk.collect.android.adapters.SortDialogAdapter.onBindViewHolder (SortDialogAdapter.java:33)
android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder (RecyclerView.java:6673)
android.support.v7.widget.RecyclerView$Adapter.bindViewHolder (RecyclerView.java:6714)
android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline (RecyclerView.java:5647)
android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:5913)
android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5752)
android.support.v7.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:5748)
android.support.v7.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2232)
android.support.v7.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1559)
android.support.v7.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1519)
android.support.v7.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:614)
android.support.v7.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:3812)
android.support.v7.widget.RecyclerView.onMeasure (RecyclerView.java:3225)
android.view.View.measure (View.java:23279)
android.widget.RelativeLayout.measureChildHorizontal (RelativeLayout.java:715)
android.widget.RelativeLayout.onMeasure (RelativeLayout.java:461)
android.view.View.measure (View.java:23279)
android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6928)
android.widget.FrameLayout.onMeasure (FrameLayout.java:185)
android.view.View.measure (View.java:23279)
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch component error «attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference» #3587
Switch component error «attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference» #3587
Comments
Is there an existing issue for this?
Explain what you did
A simple usage of the Switch component in Android throws an error when setting it to false . Error doesn’t occur in iOS or when setting it as true .
Expected behavior
Should be able to switch between true and false
Describe the bug
When switching to false on Android, it throws an exception «attempt to invoke virtual method ‘int java.lang.Integer.intValue()’ on a null object reference»
Steps To Reproduce
Plain usage of the Switch component const Switched = (props)=> < const [val, setVal] = useState(false); return onValueChange= setVal(v)>/> >
Screenshots
Your Environment
«react-native»: «0.67.3»,
«@rneui/base»: «^4.0.0-rc.4»,
«@rneui/themed»: «^4.0.0-rc.4»,
The text was updated successfully, but these errors were encountered: