Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
c433c5e7
Commit
c433c5e7
authored
11 years ago
by
Michael Vines
Browse files
Options
Downloads
Patches
Plain Diff
Remove patch, upstreamed.
Change-Id: I1f64c723b39bc53a4266bcd7cd6b3b2bdc27b83e
parent
8e1d3d9c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patch/jb_3.2/gaia/CR583569-Avoid-dereferencing-e.accelerationIncluding.patch
+0
-29
0 additions, 29 deletions
...R583569-Avoid-dereferencing-e.accelerationIncluding.patch
with
0 additions
and
29 deletions
patch/jb_3.2/gaia/CR583569-Avoid-dereferencing-e.accelerationIncluding.patch
deleted
100644 → 0
+
0
−
29
View file @
8e1d3d9c
From d53aeea2d443a94164d1f14511c6ec0eb0a8e141 Mon Sep 17 00:00:00 2001
From: Michael Vines <mvines@codeaurora.org>
Date: Wed, 4 Dec 2013 11:29:43 -0800
Subject: [PATCH] CR583569 - Avoid dereferencing
|e.accelerationIncludingGravity| when null
Change-Id: I41d48258a5bf028102aae0b375d8ae4d7cc124a3
---
apps/camera/js/orientation.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/apps/camera/js/orientation.js b/apps/camera/js/orientation.js
index c899e7b..3e9c832 100644
--- a/apps/camera/js/orientation.js
+++ b/apps/camera/js/orientation.js
@@ -77,6 +77,10 @@
var CameraOrientation = (function() {
}
function handleMotionEvent(e) {
+ if (!e.accelerationIncludingGravity) {
+ return;
+ }
+
var filterReset = applyFilter(e.accelerationIncludingGravity.x,
e.accelerationIncludingGravity.y,
e.accelerationIncludingGravity.z);
--
1.7.6
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment