dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23163
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11263: fix the NullPointerException with HTTP gateway
------------------------------------------------------------
revno: 11263
committer: Long <Long@Long-Laptop>
branch nick: dhis2
timestamp: Wed 2013-06-26 14:37:34 +0700
message:
fix the NullPointerException with HTTP gateway
modified:
dhis-2/dhis-services/dhis-service-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.java'
--- dhis-2/dhis-services/dhis-service-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.java 2013-06-19 18:57:37 +0000
+++ dhis-2/dhis-services/dhis-service-sms/src/main/java/org/hisp/dhis/sms/outbound/SmsSender.java 2013-06-26 07:37:34 +0000
@@ -136,7 +136,7 @@
text = createMessage( subject, text, sender );
// Bulk is limited in sending long SMS, need to cut into small pieces
- if ( SmsLibService.gatewayMap.get( "bulk_gw" ).equals( gatewayId ) )
+ if ( SmsLibService.gatewayMap.get( "bulk_gw" )!= null && SmsLibService.gatewayMap.get( "bulk_gw" ).equals( gatewayId ) )
{
// Check if text contain any specific unicode character
for( char each: text.toCharArray())