diff options
author | Raphael Moll <ralf@android.com> | 2010-04-27 15:38:35 -0700 |
---|---|---|
committer | Raphael Moll <ralf@android.com> | 2010-04-27 15:38:35 -0700 |
commit | 967a86c958402216e978c54f3b9ee61ec2a12eb1 (patch) | |
tree | c55e79c24d4c0590731cacb177902ca843a72f17 | |
parent | c14eb61f1da87b631d24a89b3493955e875e7139 (diff) | |
download | sdk-967a86c958402216e978c54f3b9ee61ec2a12eb1.zip sdk-967a86c958402216e978c54f3b9ee61ec2a12eb1.tar.gz sdk-967a86c958402216e978c54f3b9ee61ec2a12eb1.tar.bz2 |
Fix NPE in the DDMS plugin device view.
Change-Id: I771cc215e21f4deb93c85eabce649b275fab3ef4
-rw-r--r-- | eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/views/DeviceView.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/views/DeviceView.java b/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/views/DeviceView.java index a13f3f2..fc6156d 100644 --- a/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/views/DeviceView.java +++ b/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/views/DeviceView.java @@ -246,9 +246,6 @@ public class DeviceView extends ViewPart implements IUiSelectionListener, IClien @Override public void createPartControl(Composite parent) { mParentShell = parent.getShell(); - ClientData.setHprofDumpHandler(new HProfHandler(mParentShell)); - AndroidDebugBridge.addClientChangeListener(this); - ClientData.setMethodProfilingHandler(new MethodProfilingHandler(mParentShell)); mDeviceList = new DevicePanel(DdmsPlugin.getImageLoader(), USE_SELECTED_DEBUG_PORT); mDeviceList.createPanel(parent); @@ -425,6 +422,10 @@ public class DeviceView extends ViewPart implements IUiSelectionListener, IClien } placeActions(); + + ClientData.setHprofDumpHandler(new HProfHandler(mParentShell)); + AndroidDebugBridge.addClientChangeListener(this); + ClientData.setMethodProfilingHandler(new MethodProfilingHandler(mParentShell)); } @Override |