Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
sat4j
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
51
Issues
51
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SAT4J
sat4j
Commits
b430d191
Commit
b430d191
authored
Sep 25, 2018
by
Daniel Le Berre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improving
#147
It is probably better to avoid a NPE on the synchronized statement.
parent
4d97c59e
Pipeline
#2948
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
org.sat4j.core/src/main/java/org/sat4j/minisat/core/Solver.java
...t4j.core/src/main/java/org/sat4j/minisat/core/Solver.java
+1
-1
No files found.
org.sat4j.core/src/main/java/org/sat4j/minisat/core/Solver.java
View file @
b430d191
...
...
@@ -1779,7 +1779,7 @@ public class Solver<D extends DataStructureFactory>
@Override
public
void
run
()
{
Solver
.
this
.
undertimeout
=
false
;
synchronized
(
Solver
.
this
.
timer
)
{
synchronized
(
Solver
.
this
)
{
if
(
Solver
.
this
.
timer
!=
null
)
{
Solver
.
this
.
timer
.
cancel
();
Solver
.
this
.
timer
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment