A new user interface for you! Read more...

File tvbrowser-r8795_fix_possible_NPE.patch of Package tvbrowser

diff -w -purN a/src/tvbrowser/extras/favoritesplugin/core/Favorite.java b/src/tvbrowser/extras/favoritesplugin/core/Favorite.java
--- a/src/tvbrowser/extras/favoritesplugin/core/Favorite.java	2017-07-06 23:01:00.000000000 +0200
+++ b/src/tvbrowser/extras/favoritesplugin/core/Favorite.java	2017-07-06 23:01:32.000000000 +0200
@@ -19,9 +19,9 @@
  * CVS information:
  *  $RCSfile$
  *   $Source$
- *     $Date: 2017-06-20 23:52:13 +0200 (Di, 20 Jun 2017) $
+ *     $Date: 2017-06-27 23:41:44 +0000 (Tue, 27 Jun 2017) $
  *   $Author: ds10 $
- * $Revision: 8773 $
+ * $Revision: 8795 $
  */
 
 package tvbrowser.extras.favoritesplugin.core;
@@ -306,12 +306,14 @@ public abstract class Favorite {
         
         Program newProg = null;
         
+        if(newProgs != null) {
         for(Program check : newProgs) {
           if(check.getTitle().equals(test.getTitle())) {
             newProg = check;
             break;
           }
         }
+        }
 
         if(newProg != null && newProg.getProgramState() == Program.STATE_IS_VALID && !newProg.isExpired()) {
           mNewPrograms.set(i,newProg);