Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SAT4J
sat4j
Commits
b430d191
Commit
b430d191
authored
Sep 25, 2018
by
Daniel Le Berre
Browse files
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
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>
...
@@ -1779,7 +1779,7 @@ public class Solver<D extends DataStructureFactory>
@Override
@Override
public
void
run
()
{
public
void
run
()
{
Solver
.
this
.
undertimeout
=
false
;
Solver
.
this
.
undertimeout
=
false
;
synchronized
(
Solver
.
this
.
timer
)
{
synchronized
(
Solver
.
this
)
{
if
(
Solver
.
this
.
timer
!=
null
)
{
if
(
Solver
.
this
.
timer
!=
null
)
{
Solver
.
this
.
timer
.
cancel
();
Solver
.
this
.
timer
.
cancel
();
Solver
.
this
.
timer
=
null
;
Solver
.
this
.
timer
=
null
;
...
...
Write
Preview
Supports
Markdown
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