question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fatal Exception on event adding

See original GitHub issue

My application stop working when I try to add new event into calendar.

Here call example:

RNCalendarEvents.saveEvent('Test', { 
	location: 'New York, United States',
	startTime: '2017-03-29T10:30:00.000Z',
	endTime: '2017-03-29T11:30:00.000Z',
	description: 'Test description' 
});

Here the exception description from logcat:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getLastPathSegment()' on a null object reference
    at com.calendarevents.CalendarEvents.addEvent(CalendarEvents.java:308)
    at com.calendarevents.CalendarEvents$2.run(CalendarEvents.java:510)
    at java.lang.Thread.run(Thread.java:818)

Library version: 1.3.6 React Native: 0.42

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
wmcmahancommented, Mar 30, 2017

@qmegas, for date formatting you can do something like this:

(new Date('2017-03-30T10:30:00-04:00')).toISOString()

Not very clean, though. I will try to develop a better way to handle various date formats.

0reactions
nwaughachukwumacommented, Jan 8, 2019

Yes it does @wmcmahan. Thanks so much

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding New Event shows "Fatal Error" · Issue #1368 - GitHub
I have noticed that this is due to the usage of "CakeText" class in the new MISP env, and if I change this...
Read more >
Fatal Exception: java.lang.IllegalStateException no event ...
Didn't solve for me, I am calling activity. recreate() method and got that error.
Read more >
Fatal Error due to conflict with the Events Calendar plugin
After updating the Events Calendar plugin to version 5.0, and when viewing a single event, a fatal error occurs due to the conflict...
Read more >
Insert Event method, Fatal Error : Uncaught exception ...
Hello,. I'm using the Google Calendar API to create a new event for exemple to remember the date of NBA Basketball games.
Read more >
What to do if I see 'Fatal Error'? - Modern Events Calendar ...
Fatal Error can happen if you are using multiple plugins at the same time. They may interfere with one another. You can resolve...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found