Skip to content

Commit 746c9ec

Browse files
committed
fix
1 parent e75b354 commit 746c9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/memory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class MemoryManager implements IMemoryManager {
180180

181181
async getMemoryById(id: UUID): Promise<Memory | null> {
182182
const result = await this.runtime.databaseAdapter.getMemoryById(id);
183-
if (result.agentId !== this.runtime.agentId) return null;
183+
if (result && result.agentId !== this.runtime.agentId) return null;
184184
return result;
185185
}
186186

0 commit comments

Comments
 (0)