You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/02/15 02:09:39 UTC

[1/4] wp7 commit: Fixed null pointer exception when this.player.Source is null in the startPlaying method of Audio player. Error callback now works multiple times.

Fixed null pointer exception when this.player.Source is null in the startPlaying method of Audio player. Error callback now works multiple times.


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/249cfe05
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/249cfe05
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/249cfe05

Branch: refs/heads/master
Commit: 249cfe05e484858ae473dd20456a9ea0349c1c26
Parents: 73ffd3f
Author: Benn Mapes <be...@gmail.com>
Authored: Thu Jan 24 18:09:38 2013 -0800
Committer: Benn Mapes <be...@gmail.com>
Committed: Thu Jan 24 18:09:38 2013 -0800

----------------------------------------------------------------------
 .../standalone/cordovalib/Commands/AudioPlayer.cs  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/249cfe05/templates/standalone/cordovalib/Commands/AudioPlayer.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/AudioPlayer.cs b/templates/standalone/cordovalib/Commands/AudioPlayer.cs
index 00e345c..77c6f8a 100644
--- a/templates/standalone/cordovalib/Commands/AudioPlayer.cs
+++ b/templates/standalone/cordovalib/Commands/AudioPlayer.cs
@@ -228,7 +228,7 @@ namespace WPCordovaClassLib.Cordova.Commands
             }
 
 
-            if (this.player == null || this.player.Source.AbsolutePath.LastIndexOf(filePath) < 0)
+            if (this.player == null || this.player.Source == null || this.player.Source.AbsolutePath.LastIndexOf(filePath) < 0)
             {
                 try
                 {