ed33 / rcsjta

Automatically exported from code.google.com/p/rcsjta
1 stars 0 forks source link

NPE upon reception of a file transfer invitation while contact is blocked #118

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Initial conditions:
user B has blocked user A.

Actions:
User A sends a file transfer invitation to user B.

Expected result:
File transfer is marked as REJECTED (reason code: REJECTED_SPAM). 

Result: NPE is raised.
06-23 09:02:48.375: V/[RCS][SipInterface](3918): <<< Receive SIP INVITE
06-23 09:02:48.385: V/[RCS][SipInterface](3918): Notify a SIP listener
06-23 09:02:48.385: V/[RCS][ImsServiceDispatcher](3918): Receive INVITE request
06-23 09:02:48.385: V/[RCS][SipInterface](3918): >>> Send SIP 100 response
06-23 09:02:48.405: V/[RCS][FileTransferHttpInfoParser](3918): Start document
06-23 09:02:48.405: V/[RCS][FileTransferHttpInfoParser](3918): End document
06-23 09:02:48.415: V/[RCS][ImsServiceDispatcher](3918): Single file transfer 
over HTTP invitation
06-23 09:02:48.415: I/[RCS][InstantMessagingService](3918): Receive a single 
HTTP file transfer invitation
06-23 09:02:48.415: V/[RCS][InstantMessagingService](3918): Contact 
+33682594744 is blocked, automatically reject the HTTP File transfer
06-23 09:02:48.415: I/[RCS][ImsService](3918): Send error 603
06-23 09:02:48.415: V/[RCS][SipInterface](3918): >>> Send SIP 603 response
06-23 09:02:48.425: V/[RCS][SipInterface](3918): Dialog terminated
06-23 09:02:48.425: V/[RCS][MediaDescription](3918): Invalid payload type : *
06-23 09:02:48.435: E/[RCS][ImsServiceDispatcher](3918): Failed to dispatch 
received SIP request! CallId=3ef2fd9d6d036260fad443eae9625520@172.20.65.133
06-23 09:02:48.435: E/[RCS][ImsServiceDispatcher](3918): 
java.lang.NullPointerException
06-23 09:02:48.435: E/[RCS][ImsServiceDispatcher](3918):    at 
com.gsma.rcs.core.content.ContentManager.createMmContentFromSdp(ContentManager.j
ava:328)
06-23 09:02:48.435: E/[RCS][ImsServiceDispatcher](3918):    at 
com.gsma.rcs.core.ims.service.im.InstantMessagingService.handleFileTransferInvit
ationRejected(InstantMessagingService.java:217)
06-23 09:02:48.435: E/[RCS][ImsServiceDispatcher](3918):    at 
com.gsma.rcs.core.ims.service.im.InstantMessagingService.receiveOneToOneHttpFile
TranferInvitation(InstantMessagingService.java:1432)
06-23 09:02:48.435: E/[RCS][ImsServiceDispatcher](3918):    at 
com.gsma.rcs.core.ims.service.ImsServiceDispatcher.dispatch(ImsServiceDispatcher
.java:333)
06-23 09:02:48.435: E/[RCS][ImsServiceDispatcher](3918):    at 
com.gsma.rcs.core.ims.service.ImsServiceDispatcher.run(ImsServiceDispatcher.java
:128)

Original issue reported on code.google.com by lemordan...@gmail.com on 23 Jun 2015 at 7:10

GoogleCodeExporter commented 8 years ago
Fixed by revision 65a4156bfbe1

Original comment by lemordan...@gmail.com on 26 Jun 2015 at 7:07