Skip to content

Commit 6ee2a46

Browse files
committed
[fix] missing throw in PKey::EC::Point#add
1 parent cefa887 commit 6ee2a46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/jruby/ext/openssl/PKeyEC.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,7 @@ public IRubyObject add(final ThreadContext context, final IRubyObject other) {
13801380

13811381
pointResult = pointSelf.add(pointOther);
13821382
if (pointResult == null) {
1383-
newECError(runtime, "EC_POINT_add");
1383+
throw newECError(runtime, "EC_POINT_add");
13841384
}
13851385

13861386
result = new Point(runtime, EC5Util.convertPoint(pointResult), group);

0 commit comments

Comments
 (0)