Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
fbec6ff6
Commit
fbec6ff6
authored
4 years ago
by
Jayaram Sreevalsan
Browse files
Options
Downloads
Patches
Plain Diff
Adding synchronized access to osAccountAttributes
parent
0a272c00
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/src/org/sleuthkit/datamodel/OsAccount.java
+2
-2
2 additions, 2 deletions
bindings/java/src/org/sleuthkit/datamodel/OsAccount.java
with
2 additions
and
2 deletions
bindings/java/src/org/sleuthkit/datamodel/OsAccount.java
+
2
−
2
View file @
fbec6ff6
...
@@ -60,7 +60,7 @@ public final class OsAccount extends AbstractContent {
...
@@ -60,7 +60,7 @@ public final class OsAccount extends AbstractContent {
private
Long
creationTime
=
null
;
private
Long
creationTime
=
null
;
private
List
<
OsAccountAttribute
>
osAccountAttributes
=
null
;
private
List
<
OsAccountAttribute
>
osAccountAttributes
=
null
;
private
volatile
List
<
OsAccountInstance
>
osAccountInstances
=
null
;
private
List
<
OsAccountInstance
>
osAccountInstances
=
null
;
private
boolean
isDirty
=
false
;
// indicates that some member value has changed since construction and it should be updated in the database.
private
boolean
isDirty
=
false
;
// indicates that some member value has changed since construction and it should be updated in the database.
...
@@ -481,7 +481,7 @@ public OsAccountDbStatus getOsAccountDbStatus() {
...
@@ -481,7 +481,7 @@ public OsAccountDbStatus getOsAccountDbStatus() {
*
*
* @throws TskCoreException
* @throws TskCoreException
*/
*/
public
List
<
OsAccountAttribute
>
getOsAccountAttributes
()
throws
TskCoreException
{
public
synchronized
List
<
OsAccountAttribute
>
getOsAccountAttributes
()
throws
TskCoreException
{
if
(
osAccountAttributes
==
null
)
{
if
(
osAccountAttributes
==
null
)
{
osAccountAttributes
=
sleuthkitCase
.
getOsAccountManager
().
getOsAccountAttributes
(
this
);
osAccountAttributes
=
sleuthkitCase
.
getOsAccountManager
().
getOsAccountAttributes
(
this
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment