File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
test/net/i2p/crypto/eddsa/math Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 22
33import java .io .BufferedReader ;
44import java .io .IOException ;
5+ import java .io .InputStream ;
56import java .io .InputStreamReader ;
67
78import net .i2p .crypto .eddsa .Utils ;
@@ -22,8 +23,10 @@ public static GroupElement[][] getPrecomputation(String fileName) {
2223 BufferedReader file = null ;
2324 int row = 0 , col = 0 ;
2425 try {
25- file = new BufferedReader (new InputStreamReader (
26- PrecomputationTestVectors .class .getResourceAsStream (fileName )));
26+ InputStream is = PrecomputationTestVectors .class .getResourceAsStream (fileName );
27+ if (is == null )
28+ throw new IOException ("Resource not found: " + fileName );
29+ file = new BufferedReader (new InputStreamReader (is ));
2730 String line ;
2831 while ((line = file .readLine ()) != null ) {
2932 if (line .equals (" }," ))
You can’t perform that action at this time.
0 commit comments