OSDN Git Service
(root)
/
android-x86
/
packages-apps-Camera2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e29b573
)
Fix NPE in PieRenderer
author
Michael Kolb
<kolby@google.com>
Fri, 12 Apr 2013 15:45:25 +0000
(08:45 -0700)
committer
Michael Kolb
<kolby@google.com>
Fri, 12 Apr 2013 15:45:25 +0000
(08:45 -0700)
Bug:
8579025
Change-Id: I1faaa4fc8a48e6abedca303e80dbf48d7b5e7574
src/com/android/camera/ui/PieRenderer.java
patch
|
blob
|
history
diff --git
a/src/com/android/camera/ui/PieRenderer.java
b/src/com/android/camera/ui/PieRenderer.java
index
0d8312c
..
0969e4e
100644
(file)
--- a/
src/com/android/camera/ui/PieRenderer.java
+++ b/
src/com/android/camera/ui/PieRenderer.java
@@
-671,7
+671,7
@@
public class PieRenderer extends OverlayRenderer
}
private void onEnterOpen() {
- if ((mCurrentItem != getOpenItem()) && mCurrentItem.hasItems()) {
+ if ((mCurrentItem !=
null) && (mCurrentItem !=
getOpenItem()) && mCurrentItem.hasItems()) {
openCurrentItem();
}
}