Comments (8)
Same error to me, happens every time when you confirm selecting the photo you just took
from tedbottompicker.
I have same error occurred in Samsung Galaxy S4 while i taking picture from camera.
guys can you please solve it as soon as possible?
Thanks in Advance.
from tedbottompicker.
@vinaywadhwa @ivandiazmolina @exloong @kushanshah11
That error occur by rotation.
I fix rotation error at 1.0.6 version.
Now you can use this library without NullPointerException
from tedbottompicker.
Same problem in library's code inside method "setupDialog". Only happened with camera
if(builder.peekHeight>0){
// ((BottomSheetBehavior) behavior).setPeekHeight(1500);
((BottomSheetBehavior) behavior).setPeekHeight(builder.peekHeight);
}
I check that "setupDialog()" call again after take photo and builder variable is null
from tedbottompicker.
That is little strange.
That error log told us behavior is null
.
But I alway null check when use behavior.
This is source code.
if (behavior != null && behavior instanceof BottomSheetBehavior) {
((BottomSheetBehavior) behavior).setBottomSheetCallback(mBottomSheetBehaviorCallback);
if(builder.peekHeight>0){
// ((BottomSheetBehavior) behavior).setPeekHeight(1500);
((BottomSheetBehavior) behavior).setPeekHeight(builder.peekHeight);
}
}
You can see if (behavior != null && behavior instanceof BottomSheetBehavior)
.
So behavior can not be null.
Hm...
Did you have always error?
from tedbottompicker.
Yes, but variable is null because fragment dialog is rebuilt after selecting the image
from tedbottompicker.
@ParkSangGwon can you please Look into this issue ???
anyone solved this issue please post Resolution for this issue.
Thanks in advance.
from tedbottompicker.
Hi @ParkSangGwon ,
Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65537, result=-1, data=null} to activity {com.iotconnect/com.iotconnect.activity.DrawerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:4067)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3389)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3434)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2772)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4471)
at android.app.ActivityThread.access$1000(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1455)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getPath()' on a null object reference
at gun0912.tedbottompicker.TedBottomPicker.onActivityResultCamera(TedBottomPicker.java:467)
at gun0912.tedbottompicker.TedBottomPicker.onActivityResult(TedBottomPicker.java:453)
at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:164)
at android.app.Activity.dispatchActivityResult(Activity.java:6549)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4063)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3389)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3434)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2772)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4471)
at android.app.ActivityThread.access$1000(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1455)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5951)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1388)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1183)
i m still facing same issue while i capture pic from SAMSUNG S4.
and yes i have used latest version 1.0.6
can you please Look into this issue.
Thanks in advance
from tedbottompicker.
Related Issues (20)
- ProxyActivity Issue.
- On select Google Photos
- Feature enhancement: Select Multiple images
- cant change background colour
- Mime type HOT 1
- 오타 수정 HOT 1
- Images don't load on Android 10+ HOT 9
- Open Camera throws exception on android 10 HOT 1
- Android Manifest Merge error, caused by file provider
- Do Not Have Gallery Option HOT 1
- Fatal Exception: java.lang.RuntimeException HOT 1
- Only shows external storage images
- How to add my own ImageProvider
- Not working for 1+ phones.
- No method explosed to change the span count of grid view
- Android 11 MediaScannerConnection.java line 250 android.media.MediaScannerConnection.lambda$scanFile$2
- picker를 내리거나 뒤로가기 했을때 콜백을 받지 못하나요?
- Could not resolve all files for configuration ':app:debugRuntimeClasspath'. HOT 1
- android 13 WRITE_EXTERNAL_STORAGE 퍼미션 문제
- Could not find gun0912.ted:tedbottompicker:2.0.1.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tedbottompicker.