WING-NUS / SSID

Student Submission Integrity Diagnosis
18 stars 23 forks source link

Fix null pointer exception of assignment processing status #391

Closed sibinhho99 closed 6 months ago

sibinhho99 commented 6 months ago

Description

In the current code, the forked process for Java engine in https://github.com/WING-NUS/SSID/blob/02d553a8dd482b41f40725f06c5ab9ce628012ff/lib/submissions_handler.rb#L204 might access the SubmissionSimilarityProcess object before its initialization in https://github.com/WING-NUS/SSID/blob/02d553a8dd482b41f40725f06c5ab9ce628012ff/lib/submissions_handler.rb#L237, causing null pointer exception. I changed this initialization to before the forking.

Related Issue

390

Motivation and Context

Bug fix

How Has This Been Tested?

Local testing

Screenshots (if appropriate):

Types of changes

Checklist:

sibinhho99 commented 6 months ago

Not yet resolved