Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenSol committed Feb 16, 2024
1 parent 5a2579f commit 32f84be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ public void run(UUID id) {

ThermodynamicOperations thermoOps = new ThermodynamicOperations(thermoSystem);

if (thermoSystem.getNumberOfComponents() == 1 && getSpecification().equals("TP")) {
if (stream != null && thermoSystem.getNumberOfComponents() == 1
&& getSpecification().equals("TP")) {
setSpecification("PH");
}
if (getSpecification().equals("TP")) {
Expand Down

0 comments on commit 32f84be

Please sign in to comment.