Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 72741 Details for
Bug 194543
Unload profiling data results in an exception
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Patch for 194543
194543.txt (text/plain), 3.39 KB, created by
Alex Nan
on 2007-06-28 17:43:27 EDT
(
hide
)
Description:
Patch for 194543
Filename:
MIME Type:
Creator:
Alex Nan
Created:
2007-06-28 17:43:27 EDT
Size:
3.39 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.trace.ui >Index: src/org/eclipse/hyades/trace/ui/internal/util/PerftraceUtil.java >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/util/PerftraceUtil.java,v >retrieving revision 1.8 >diff -u -r1.8 PerftraceUtil.java >--- src/org/eclipse/hyades/trace/ui/internal/util/PerftraceUtil.java 29 Dec 2006 19:16:46 -0000 1.8 >+++ src/org/eclipse/hyades/trace/ui/internal/util/PerftraceUtil.java 28 Jun 2007 21:40:43 -0000 >@@ -1332,6 +1332,9 @@ > > public static boolean hasMethodInvocationInfo(final EObject object) { > TRCAgentProxy agentProxy = getAgentProxy(object); >+ if(agentProxy == null){ >+ return false; >+ } > TRCCollectionMode mode = agentProxy.getCollectionMode(); > > return (mode == TRCCollectionMode.EXECUTION_FULL_LITERAL >@@ -1344,6 +1347,9 @@ > > public static boolean hasFullMethodInvocationInfo(final EObject object) { > TRCAgentProxy agentProxy = getAgentProxy(object); >+ if(agentProxy == null){ >+ return false; >+ } > TRCCollectionMode mode = agentProxy.getCollectionMode(); > return mode == TRCCollectionMode.EXECUTION_FULL_LITERAL > || mode == TRCCollectionMode.EXECUTION_NO_INSTANCES_LITERAL >@@ -1353,6 +1359,9 @@ > > public static boolean hasExecutionInfo(final EObject object) { > TRCAgentProxy agentProxy = getAgentProxy(object); >+ if(agentProxy == null){ >+ return false; >+ } > TRCCollectionMode mode = agentProxy.getCollectionMode(); > return mode == TRCCollectionMode.EXECUTION_FULL_LITERAL > || mode == TRCCollectionMode.HEAP_FULL_AND_EXECUTION_STATISTICS_ONLY_LITERAL >@@ -1365,6 +1374,9 @@ > > public static boolean hasHeapInfo(final EObject object) { > TRCAgentProxy agentProxy = getAgentProxy(object); >+ if(agentProxy == null){ >+ return false; >+ } > TRCCollectionMode mode = agentProxy.getCollectionMode(); > return mode == TRCCollectionMode.HEAP_FULL_LITERAL > || mode == TRCCollectionMode.HEAP_FULL_AND_EXECUTION_STATISTICS_ONLY_LITERAL >#P org.eclipse.tptp.platform.common.ui.trace >Index: src/org/eclipse/hyades/trace/ui/internal/util/SaveUtil.java >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.tptp.platform.common.ui.trace/src/org/eclipse/hyades/trace/ui/internal/util/SaveUtil.java,v >retrieving revision 1.2 >diff -u -r1.2 SaveUtil.java >--- src/org/eclipse/hyades/trace/ui/internal/util/SaveUtil.java 20 Sep 2006 21:21:01 -0000 1.2 >+++ src/org/eclipse/hyades/trace/ui/internal/util/SaveUtil.java 28 Jun 2007 21:40:43 -0000 >@@ -117,7 +117,7 @@ > } > else if (obj instanceof TRCAgentProxy) { > TRCAgentProxy agent = (TRCAgentProxy)obj; >- if (agent.getAgent() != null) { >+ if (agent.getAgent() != null && agent.getAgent().eResource() != null) { > try { > org.eclipse.hyades.models.hierarchy.util.SaveUtil.saveResource(monitor, agent.getAgent().eResource()); > } >@@ -268,7 +268,7 @@ > } > else if (obj instanceof TRCAgentProxy) { > TRCAgentProxy a = (TRCAgentProxy)obj; >- if (!a.eIsProxy()) { >+ if (!a.eIsProxy() && a.getAgent() != null && a.getAgent().eResource() != null) { > if (isReadOnly(a.getAgent().eResource())) { > handleSaveReadOnlyException(a.getName(), a); > return false;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 194543
:
72703
| 72741 |
72756
|
72803