lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] git commit: LUCENENET-543 - Snowball TestApp.cs - NullReferenceException
Date Mon, 16 Jun 2014 21:53:05 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master af2b5b2aa -> c7aa99cd4


LUCENENET-543 - Snowball TestApp.cs - NullReferenceException


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/46032f24
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/46032f24
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/46032f24

Branch: refs/heads/master
Commit: 46032f24cbffc5f69a063c9682368fa8379f778e
Parents: af2b5b2
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Tue Jun 17 00:35:05 2014 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Tue Jun 17 00:35:05 2014 +0300

----------------------------------------------------------------------
 src/contrib/Snowball/SF/Snowball/TestApp.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/46032f24/src/contrib/Snowball/SF/Snowball/TestApp.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Snowball/SF/Snowball/TestApp.cs b/src/contrib/Snowball/SF/Snowball/TestApp.cs
index 0977156..8c32681 100644
--- a/src/contrib/Snowball/SF/Snowball/TestApp.cs
+++ b/src/contrib/Snowball/SF/Snowball/TestApp.cs
@@ -31,7 +31,7 @@ namespace SF.Snowball
             
             System.Type stemClass = System.Type.GetType("SF.Snowball.Ext." + args[0] + "Stemmer");
             SnowballProgram stemmer = (SnowballProgram) System.Activator.CreateInstance(stemClass);
-            System.Reflection.MethodInfo stemMethod = stemClass.GetMethod("stem", (new System.Type[0]
== null)?new System.Type[0]:(System.Type[]) new System.Type[0]);
+            System.Reflection.MethodInfo stemMethod = stemClass.GetMethod("Stem", new Type[0]);
             
             System.IO.StreamReader reader;
             reader = new System.IO.StreamReader(new System.IO.FileStream(args[1], System.IO.FileMode.Open,
System.IO.FileAccess.Read), System.Text.Encoding.Default);


Mime
View raw message