Skip to content

Commit 6c5b5c3

Browse files
authored
prevent linux parsing errors (kevoreilly#2744)
1 parent f812eab commit 6c5b5c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

data/html/sections/behavior.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ <h4>{{process.process_name}} <small>PID: {{process.process_id}}, Parent PID: {{p
100100
<div>
101101
<h4><a href="javascript:showHide('process_{{process.process_id}}');">{{process.process_name}}</a>
102102
<small>PID: {{process.process_id}}, Parent PID: {{process.parent_id}}, Full Path: <b>{{process.module_path}}</b>
103-
{% if process.environ.CommandLine %}
103+
{% if process.environ and process.environ.CommandLine %}
104104
, Command Line: <b>{{ process.environ.CommandLine }}</b>
105105
{% endif %}
106106
</small>
@@ -158,6 +158,7 @@ <h4><a href="javascript:showHide('process_{{process.process_id}}');">{{process.p
158158
Nothing to display.
159159
{% endif %}
160160
{% endif %}
161+
{% if results.behavior and results.behavior.summary %}
161162
<div class="card card-body">
162163
<b>Accessed Files</b>
163164
{% if results.behavior.summary.files %}
@@ -266,4 +267,5 @@ <h4><a href="javascript:showHide('process_{{process.process_id}}');">{{process.p
266267
Nothing to display.
267268
{% endif %}
268269
</div>
270+
{% endif %}
269271
</section>

0 commit comments

Comments
 (0)