Skip to content
New issue

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

MessageInput Error: Application Crashes on launching DefaultMessageActivity on setcontentview method #371

Open
nyadav1992 opened this issue Sep 14, 2022 · 0 comments

Comments

@nyadav1992
Copy link

Caused by: android.view.InflateException: Binary XML file line #35 in com.creative.astrostar:layout/activity_default_messages: Binary XML file line #35 in com.creative.astrostar:layout/activity_default_messages: Error inflating class com.stfalcon.chatkit.messages.MessageInput
Caused by: android.view.InflateException: Binary XML file line #35 in com.creative.astrostar:layout/activity_default_messages: Error inflating class com.stfalcon.chatkit.messages.MessageInput
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:876)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1064)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1019)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1181)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1142)
at android.view.LayoutInflater.inflate(LayoutInflater.java:701)
at android.view.LayoutInflater.inflate(LayoutInflater.java:553)
at android.view.LayoutInflater.inflate(LayoutInflater.java:500)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:710)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:195)
at com.creative.astrostar.view.activity.chat.DefaultMessagesActivity.onCreate(DefaultMessagesActivity.java:173)
at android.app.Activity.performCreate(Activity.java:8369)
at android.app.Activity.performCreate(Activity.java:8347)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1379)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3912)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4096)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2441)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:334)
at android.app.ActivityThread.main(ActivityThread.java:8396)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
2022-09-14 22:27:50.025 3007-3007/com.creative.astrostar E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageButton.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
at com.stfalcon.chatkit.messages.MessageInput.init(MessageInput.java:252)
at com.stfalcon.chatkit.messages.MessageInput.init(MessageInput.java:191)
at com.stfalcon.chatkit.messages.MessageInput.(MessageInput.java:76)

I tried changeing "MessageInput" Id as well but not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant