summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRicardo Garcia <rago@google.com>2015-07-20 18:03:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-20 18:03:45 +0000
commit2dcfc7a9972de3abfebdf2d84bcba0095e4fbae5 (patch)
tree8f04699d72559a2565a875aebf8c40a4d7800d8d /core
parent072e04a7f1a167dc653b5bcca4876fecfdb4f6be (diff)
parent47abda576e06612b8af7b80504fafdfc076aff2d (diff)
downloadframeworks_base-2dcfc7a9972de3abfebdf2d84bcba0095e4fbae5.zip
frameworks_base-2dcfc7a9972de3abfebdf2d84bcba0095e4fbae5.tar.gz
frameworks_base-2dcfc7a9972de3abfebdf2d84bcba0095e4fbae5.tar.bz2
Merge "Fix for MidiManager bug" into mnc-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/SystemServiceRegistry.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/app/SystemServiceRegistry.java b/core/java/android/app/SystemServiceRegistry.java
index 10e8a53..01a1c18 100644
--- a/core/java/android/app/SystemServiceRegistry.java
+++ b/core/java/android/app/SystemServiceRegistry.java
@@ -691,6 +691,9 @@ final class SystemServiceRegistry {
@Override
public MidiManager createService(ContextImpl ctx) {
IBinder b = ServiceManager.getService(Context.MIDI_SERVICE);
+ if (b == null) {
+ return null;
+ }
return new MidiManager(IMidiManager.Stub.asInterface(b));
}});