cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [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.
Date Fri, 15 Feb 2013 01:09:39 GMT
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 <benn.mapes@gmail.com>
Authored: Thu Jan 24 18:09:38 2013 -0800
Committer: Benn Mapes <benn.mapes@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
                 {


Mime
View raw message