1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Fix crash when a table viewer in the observer application attempts

to refresh an ETS table which no longer exists.

Submitted by:	Peti Gomori on erlang-patches
Feature safe:	yes
This commit is contained in:
Jimmy Olgeni 2012-11-27 21:34:53 +00:00
parent 3bcd3fdd25
commit bfe3323fa3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307862
2 changed files with 15 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= erlang
PORTVERSION= 15.b.02
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= lang parallel java
MASTER_SITES= http://www.erlang.org/download/:erlangorg \

View File

@ -0,0 +1,14 @@
$FreeBSD$
--- lib/runtime_tools/src/observer_backend.erl.orig
+++ lib/runtime_tools/src/observer_backend.erl
@@ -83,7 +83,7 @@
ets -> ets:info(Table, size);
mnesia -> mnesia:table_info(Table, size)
end,
- case Size > 0 of
+ case Size =/= undefined andalso Size > 0 of
false ->
Parent ! {self(), '$end_of_table'},
normal;