diff options
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/service/DLNAController.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/github/daneren2005/dsub/service/DLNAController.java b/src/github/daneren2005/dsub/service/DLNAController.java index 6a620542..cdff990b 100644 --- a/src/github/daneren2005/dsub/service/DLNAController.java +++ b/src/github/daneren2005/dsub/service/DLNAController.java @@ -124,9 +124,13 @@ public class DLNAController extends RemoteController { @Override
protected void ended(GENASubscription genaSubscription, CancelReason cancelReason, UpnpResponse upnpResponse) {
Log.i(TAG, "Ended subscription");
- Log.i(TAG, "Cancel Reason: " + cancelReason.toString());
- Log.i(TAG, "Reponse Message: " + upnpResponse.getStatusMessage());
- Log.i(TAG, "Response Details: " + upnpResponse.getResponseDetails());
+ if(cancelReason != null) {
+ Log.i(TAG, "Cancel Reason: " + cancelReason.toString());
+ }
+ if(upnpResponse != null) {
+ Log.i(TAG, "Reponse Message: " + upnpResponse.getStatusMessage());
+ Log.i(TAG, "Response Details: " + upnpResponse.getResponseDetails());
+ }
}
@Override
|