Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit f74e38b

Browse files
committed
Fix a crash when trying to update a channel.
1 parent 251a3ac commit f74e38b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
1212

1313
### Fixed
1414

15-
## [6.1.2] 2020-10-291
15+
## [6.1.3] 2020-11-09
16+
17+
### Fixed
18+
19+
- (Android) Null pointer exception when trying to create channel [#134](https://github.com/zo0r/react-native-push-notification/issues/1734)
20+
21+
## [6.1.2] 2020-10-29
1622

1723
### Fixed
1824

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationHelper.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,8 @@ private boolean checkOrCreateChannel(NotificationManager manager, String channel
866866
channel == null && channel_name != null && channel_description != null ||
867867
channel != null &&
868868
(
869-
channel_name != null && !channel.getName().equals(channel_name) ||
870-
channel_description != null && !channel.getDescription().equals(channel_description)
869+
channel_name != null && !channel_name.equals(channel.getName()) ||
870+
channel_description != null && !channel_description.equals(channel.getDescription())
871871
)
872872
) {
873873
// If channel doesn't exist create a new one.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-push-notification",
3-
"version": "6.1.2",
3+
"version": "6.1.3",
44
"description": "React Native Local and Remote Notifications",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)